A Shoe Ecommerce Backend API , Made In Node.js With Help Of Typescript , Express , PostgresSQL [DB]
Clone the project
git clone https://github.com/Dev-Adnani/Scarvs-BackendGo to the project directory
cd Scarvs-BackendInstall dependencies
npm installStart the server
npm run devTo run this project, you will need to add the following environment variables to your .env file
JWT_SECRET
PORT
Host
DB_User
DB_Password
Database
DB_Port
DATABASE_URL
GET https://scarvs-backend.herokuapp.com POST /auth/signup| Parameter | Type | Description |
|---|---|---|
useremail |
string |
Required. User's Email |
userpassword |
string |
Required. User's Password |
username |
string |
Required. User's Username |
POST /auth/login| Parameter | Type | Description |
|---|---|---|
useremail |
string |
Required. User's Email |
userpassword |
string |
Required. User's Password |
GET /auth/verify| Headers | Type | Description |
|---|---|---|
Authorization |
string |
Required. JWT Token, Which You Get After Signup/Login |
POST /auth/change-password| Parameter | Type | Description |
|---|---|---|
useremail |
string |
Required. User's Email |
oluserpassword |
string |
Required. User's Old Password |
newuserpassword |
string |
Required. User's New Password |
POST /info/add-user-info| Parameter | Type | Description |
|---|---|---|
useremail |
string |
Required. User's Email |
user_address |
string |
Required. User's Address |
user_phone_no |
string |
Required. User's Phone No |
GET /info/{useremail} GET /auth/getUsers| Headers | Type | Description |
|---|---|---|
Authorization |
string |
Required. JWT Token, Which You Get After Signup/Login |
POST /product/add-products| Parameter | Type | Description |
|---|---|---|
product_name |
string |
Required. Product Name |
product_description |
string |
Required. Product Description |
product_price |
bigint |
Required. Product Price |
product_category |
string |
Required. Product Category |
product_image |
string |
Required. Product Image URL |
GET /product GET /product/details/{$id} DEL /product/delete/{$id}| Headers | Type | Description |
|---|---|---|
Authorization |
string |
Required. Secret Key |
GET /product/search/{$product_name} GET /product/category/{$product_category} POST /cart/add-to-cart| Parameter | Type | Description |
|---|---|---|
useremail |
string |
Required. User's Email |
product_name |
string |
Required. Product Name |
product_price |
bigint |
Required. Product Price |
product_category |
string |
Required. Product Category |
product_image |
string |
Required. Product Image URL |
product_size |
string |
Required. Shoes Size |
GET /cart/{$useremail} DEL /cart/{$id}For support, email dev.adnani26@gmail.com