This project has been set up to help those who are new to BackEnd programming with Javascript in a Node Js environment. It has been organized following a few best practices such as the MVC design pattern, the Camel case naming convention, etc...
This application is a simple blog API with role-based authentication.
- Express Js : It's a Node Js Framework that helps us quickly set up an API. Express Js Doc
- MongoDB : This is our document-oriented NoSql database.
- Passport Js : It's our authentication middleware that integrates easily with Express Js. Passport Js Doc
- Mongoose : It's our middleware that makes it easy to manipulate entities in a database. Mongoose Js Doc
- Installation of dependencies : Open the terminal at the root of the project and type the command
yarn install
. - Rename
sample.env
file to.env
. - Uncomment environment variables in the newly renamed
.env
file. - Replace the value of
MONGOHQ_URL
environment variable in your.env
file with the link to your MongoDB database. - Return to the previously opened terminal and type command
yarn seed
- Launch the project in Dev mode by typing the command
yarn dev
You can use this project as a basis exemple for getting started your backEnd projects with Node Js & Express Js