This section provides a quick start guide on how to launch the application.
- Make sure all the prerequisites are installed.
- Run the identity provider server by forking the previous TP, run
npm i
and run the servernpm start
(it runs by default on port 3000) - Download this project and
cd
into it. - Run the mongodb server with
mongod
- When its done, start the mongoDB cli with the command:
mongo
and create the database using:use jxt
(you can specify the database name and others database parameters in the config file). Make sure the name of the database is the same as the one who's in the config file. - Run
npm i
, then start the server by runningnpm start
(you can change the port used in the config file) - Enjoy our application!
Default user to get an access token is:
"login": "pedro",
"password": "pass"
Don't forget to specify the authentication token you got when logged in, in order to call most of api's endpoints. (prefix is Bearer
)