- Copy
variables.env.sample
to variables.env
& custom it
npm start
// or
npm run watch
npm run seed
npm run seed:delete
npm run seed:refresh
curl -X GET \
http://localhost:3000/
curl -X POST \
http://localhost:3000/api/authenticate \
-H 'content-type: application/json' \
-d '{
"email": "[email protected]",
"password": "123456"
}'
curl -X GET \
http://localhost:3000/api/users \
-H 'authorization: Bearer {{YOUR_TOKEN}}'
curl -X POST \
http://localhost:3000/api/sign-up \
-H 'content-type: application/json' \
-d '{
"name": "Mail1",
"email": "[email protected]",
"password": "123456"
}'
curl -X GET \
'http://localhost:3000/api/confirm-sign-up?token={{YOUR_TOKEN}}'
curl -X GET \
http://localhost:3000/api/test-axios \
-H 'authorization: Bearer {{YOUR_TOKEN}}'
curl -X POST \
http://localhost:3000/api/forgot-password \
-H 'content-type: application/json' \
-d '{
"email": "[email protected]"
}'
- API Confirm reset password:
curl -X GET \
'http://localhost:3000/api/confirm-resest-password?token={{YOUR_TOKEN}}'
curl -X GET \
http://localhost:3000/api/get-user-current \
-H 'authorization: Bearer {{YOUR_TOKEN}}'