Git Product home page Git Product logo

fullstack_bp's Introduction

#A fullstack boilerplate using Express 4, MongoDB, AngularJS, and JWT Auth

Jumbo

signup

users

###High level list of (probably) working features:

  1. User registration, login, password reset functionality
  2. Email confirmations for password reset and account registration
  3. Very basic user management (add/remove user, lock account, reset password, change name, change email, etc)
  4. 'Random' background directive to keep you sane as you dev =p
  5. Password strength and valid email directives

###Install instructions:

You will need to create a directory named config with a file named secrets.js containing the following: example

config/secrets.js:

module.exports = {

  db: process.env.MONGODB || 'mongodb://localhost/## YOUR_DATABASE_NAME ##', // your mongodb connection string
  jwt: process.env.JWT || 'SUPERSECUREJWTSEED', // a unique string to use as an encryption seed
  smtpuser: process.env.SMTPUSER || 'SENDGRID_USERNAME', // SMTP settings are provided when you sign up
  smtppassword: process.env.SMTPPASSWORD || 'SENDGRID_PASSWORD', // for a free sendgrid account (https://sendgrid.com/)
  company: process.env.COMPANY || 'YOURCOMPANYNAME' // This can be any string, it is used for the mail templates)

  };

Once the config/secrets.js file is created run npm install in the project directory and then make sure you have the mongo server running (in terminal run mongod). Finally run node server.js to fire up the server and navigate to http://localhost:1337


TODO:

  • Edit groups
  • Manage route / group association. Consider groups vs roles.
  • Accounts originating from a strange IP should need to verify by entering a time sensitive token delivered via email.
  • All Administrators and superusers must provide a google authenticator key to elevate into the role.
  • Tests
  • Security around edit user

BLING:

  • User panel directives (animate delete and add)
  • List view for users
  • Paging
  • Account security (repeat lockout, ip record, etc)
  • Refactor angular directory structure to group like components. (ie /home should include homeController.js & homeView.html, etc)
  • Better ACL
  • Account Picture

fullstack_bp's People

Contributors

harsla avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

gaggigger

fullstack_bp's Issues

database ??

Hi,

  1. Can you please help us understand how to fill this file secrets.js ?

module.exports = {

db: process.env.MONGODB || 'mongodb://localhost/## YOUR_DATABASE_NAME ##',
jwt: process.env.JWT || 'SUPERSECUREJWTSEED',
smtpuser: process.env.SMTPUSER || 'SENDGRID_USERNAME',
smtppassword: process.env.SMTPPASSWORD || 'SENDGRID_PASSWORD',
company: process.env.COMPANY || 'YOURCOMPANYNAME'

};

should we create a mongodb database ?
what are these
SUPERSECUREJWTSEED
SMTPUSER
SENDGRID_USERNAME
SMTPPASSWORD
SENDGRID_PASSWORD
?

  1. node server.js

!!! MONGOOSE WARNING !!!

This is an UNSTABLE release of Mongoose.

Unstable releases are available for preview/testing only.

DO NOT run this in production.

module.js:340
throw err;
^
Error: Cannot find module 'bcrypt'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (C:\Users\alotfi\UIs\0MeanStack\fullstack_bp-master\models\user.js:2:14)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)

Thanks

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.