created with node, express, bcryptjs, cors, dotenv, jsonwebtoken, morgan, multer, mysql2, sharp and more...
created with node, express, bcryptjs, cors, dotenv, jsonwebtoken, morgan, multer, mysql2, sharp and more...
for latest version check dev brach (not stable!!!)
simple CRUD that handles APIs requests from SQL.
- register user. Password is hashed
- login user with validation and session token
- create new product with image upload (up to 4 images) to server using multer, fs, sharp and uuid
- get all products
- get single product
- edit created product
- delete/restore created product
- Copy .env.example to .env and fill with your data.
You need local setup of SQL DB
To install the application, follow these steps:
- Clone the repository.
- Navigate to the
shop_server
folder and runnpm install
to install the server dependencies. - Import
shopping.sql
fromdata
folder to your local SQL server.