Clone the project
https://github.com/shivakumar139/login-tws.git
Go to the project directory
cd login-tws
Install dependencies
yarn install
Start the server
yarn run dev
Create a new file called .env
Copy all the content from .env.developer
and paste it into .env Change all url.
To run this project, you will need to add the following environment variables to your .env file
APP_PORT
DEBUG_MODE
DB_URL
JWT_SECRET
APP_URL
Key | Value | Type |
---|---|---|
localhost | http://localhost:5000/api | default |
Endpoint:
Method: POST
Type: RAW
URL: {{localhost}}/api/v1/login
Body:
{
"email": "shiva@gmail.com",
"password": "12345"
}
Endpoint:
Method: POST
Type: RAW
URL: {{localhost}}/api/v1/register
Body:
{
"name":"shiva",
"email": "shiva@gmail.com",
"password": "password",
"mobile": "9023236998",
"city": "ludhiana",
"state": "Punjab",
"country": "India",
"address": "pritam nagar"
}