This will be a study case where I will try to apply a Express Server that will work with:
- REST API
- GraphQL
For this process, I'm working with the NoSQL database Mongo to start a collection of informations that could be use.
To start the project, you will need to set some configurations before:
- Create a
.env
file - Insert the following information in
.env
:- MONGOURI: This will be your mongo uri that you will have acess after creating a account and a cluster on Mongo
- SECRET: This will be responsable for the turns that bcrypt uses to hash the passwords
After you set the .env
, run the following commands:
yarn
ornpm install
yarn dev
ornpm run dev