AliMilani / coffee-back-end

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setup

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.

User Registration

curl -X POST http://localhost:3000/auth/register \
  -d '{"email": "john@gmail.com", "fullname": "John Doe", "password": "secret1234"}' \
  -H "Content-Type: application/json"

User Login

curl -v -X POST http://localhost:3000/auth/login \
  -d '{"email": "john@gmail.com", "password": "secret1234"}' \
  -H "Content-Type: application/json"

Email Verification

curl -v -X POST http://localhost:3000/auth/send-verification-email \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <token>"

About


Languages

Language:TypeScript 100.0%