Boilerplate for Express.Js with MVC pattern.
- Clone this repo.
- Execute yarn install.
- Rename file config.js.name to config.js and modify content file.
- Execute bower install.
- Execute yar start-dev or yarn start and go to browser localhost:3000.
- Create user admin in collection users in MongoDB. For example for create el user admin with password admin we need encrypted with crypto.
Like this: c7ad44cbad762a5da0a452f9e854fdc1e0e7a52a38015f23f3eab1d80b931dd472634dfac71cd34ebc35d16ab7fb8a90c81f975113d6c7538dc69dd8de9077ec This last value is the password encrypted admin.
- For access to the api, go to: http://localhost:3000/api/v1/user
- Basic MVC structure to begin using MondoDB.
- Model USER integrate.
- Passport local-login. Using field 'username' of the model user.
- Middlewares for authentication.
- Admin generator using mongooseadmin (This generate cruds automatic in base to folder models).
- API REST with express-restify-mongoose.
- Bootstrap and polyfill api fetch pre-installed.
- Use pug.
Add models in file 'app/config/api.js'.