Go to Backend folder and run a command:
npm run dev
Go to Frontend folder and run a command:
npm run start
Base url: http://localhost:5050/api/v1
POST /auth/register/
body: {
email: email@email.com,
password: password,
}
password must contain upper- and lowercase letters, symbol and number
POST /users/login/
body: {
email: email@email.com,
password: password
}
POST /products/add/
body: {
"name": "Product name", *
"category": "Product category", *
"price": 5, *
"description": "Product description", *
"imageUrl": "Product image"
}
* reuired fields
GET /products/?name=name&category=category
Query name and category not necessary. Needs for searching by query
GET /products/{id}
DELETE /products/{id}
PUT /products/{id}
body: {
"name": "name",
"description": "description"
}
GET /users/me/
Go to Backend folder and run a command:
npm run test
Go to Frontend folder and run a command:
npm run test-jest