Revolucionando a educação através de crédito descomplicado.
The challenge consists in building an API to manage users and their info and data on loan requests.
- Node.js
- Express.js
- Git
- Jest (for testing)
- Frisby (for testing the endpoints)
- MongoDB
- Mongoose (package to access MongoDB)
- npm (to install and rule them all!)
- Bcryptjs
- Body-parser
- Cep-promise
- Cpf
- Fs
- Jsonwebtoken
- Path
Download and install node.
If you are on Linux, macOs or another OS, follow the Installation steps here.
Download and instal MongoDB (any OS).
Clone the repo wherever you want.
Use on terminal:
git clone https://github.com/andre-custodio/provi.git
Open the project using your favorite IDE. Inside it, install all the packages using npm via terminal:
npm install
- Open the project on your terminal, on main folder
provi
type:
node .\src\index
- Use a third-party software to use the API and access the endpoints.
- The API is hosted at http://localhost:3000/
- All models have a
.get
method on root path/
. Use it to see all the records.
GET http://localhost:3000/table-name/
- You can create an instance using
.post
method on root path/
.
POST http://localhost:3000/table-name/
- Update using
.put
on path/:id
PUT http://localhost:3000/table-name/id
- Delete using
.delete
on path/:id
DELETE http://localhost:3000/table-name/id
- Run the project just like you did on Using it:
node .\src\index
- While running, open another terminal and inside root
/provi
type:
npm test
- This will run all the tests and return if it failed or succeed.