Clone the repository first, and then run npm i
to install the dependencies. Then create a copy of .env.example
file using this command: cp .env.example .env
.
Now you need to update the .env
file and then run npm start
to launch the app.
curl -X POST http://localhost:3000/auth/register \
-d '{"email": "john@gmail.com", "fullname": "John Doe", "password": "secret1234"}' \
-H "Content-Type: application/json"
curl -v -X POST http://localhost:3000/auth/login \
-d '{"email": "john@gmail.com", "password": "secret1234"}' \
-H "Content-Type: application/json"
curl -v -X POST http://localhost:3000/auth/send-verification-email \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <token>"