Code Monkey home page Code Monkey logo

saguaro's Introduction

Saguaro

An ASP.NET MVC4 starter project for Azure Websites & SQLAzure.

######Features include:

  • Admin area with user management (using SimpleMembership)
  • Activity & Error Logging (per Environment using Azure Table Storage)
  • C# Async & Parallel Library
  • Simple Environment Management
  • SendGrid integration.

Settings

####Data Seeding:

Admin account is seeded during first App_Start inside of: InitConfig.InitializeData

WebSecurity.CreateUserAndAccount("admin", "adminPassword");

UserProfile table is generated inside of InitConfig.InitializeData here:

Sql.SeedStatements.CreateUserProfileTableTask();

####SQL:

All SQL Statements are run from the Saguaro.Sql namespace

####Activity Logs:

Activity logs can store all actions and log types by:

  • username
  • ip
  • time
  • activity

You can create more LogTypes/ActivityTypes inside Saguaro.Logging.Types

Default types include platform & activity.

Logs are also appended with the name of the current environment being used during the logging activity: (debug/production).

Example Log Table Names:

  • platformlogbyipdebug (platform log by ip debug)
  • platformlogbyipproduction (platform log by ip production)
  • activitylogbyuserdebug (activity log by user debug)
  • activitylogbyuserproduction (activity log by user production)
  • etc....

Log reports can be accessed in the_/Admin/Reports route.

####Configuration

Environment Name & Storage account information is updated inside Web.Config. Configuration is accessed using the Saguaro.EnvironmentSettings class.

All logging code is within the Saguaro.Logging namespace.

####Send Grid & Email Messaging System:

Sendgrid account information is updated inside Web.Config.

Configuration is accessed using the Saguaro.EnvironmentSettings class.

All email messagng code is within the Saguaro.Messaging namespace.

Email variables can be adjusted in the Saguaro.ProjectSettings class

Users are sent a welcome message upon account creation from the /Users/Create controller.

####Other Details:

Signout current user from the /SignOut route. You are free to implemnt your own signout within shared views.

Test logging user activity with the /Home/LogDownload route. This will log a 'download' activity by the logged in user.

saguaro's People

Contributors

kazual avatar

Watchers

 avatar

Forkers

yolticmtzz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.