This is the backend code of Jack's Garden Online Store. The online server is hosted on https://jacks-garden-server.herokuapp.com
You can find the e-shop code on https://github.com/2016lisali/jacks_garden and the admin panel code on https://github.com/2016lisali/jacks_garden_admin_panel
- Node
- MySQL or MariaDB
- Yarn or NPM
-
Import database.dump to your local Mysql database, and run the database server.
-
Download the zip file and unzip
-
Then open the file in your code editor, open the terminal and run
> npm install
- Create a
.env
file in root folder and enter following fields for cloud databaseJWT_SECRET = YOUR_JWT_SECRET STRIPE_TEST_KEY = YOUR_STRIPE_KEY HOST = YOUR_DB_HOST DBUSER = YOUR_DB_USER PASSWORD = YOUR_DB_PASSWORD DATABASE = YOUR_DB_NAME
- In editor terminal run
> npm start
the server will be running on http://localhost:5000
- node
- express
- mysql2
- jasonwebtoken
- multer
- stripe
- bcypt
- express-validator
- express-rate-limit
- express-slow-down
- cors
- generate different salt for each user password (31-05-2022)
- store token in cookies instead of localStorage (31-06-2022)
- Limit login attempts (30-06-2022)
- inventory management (31-08-2022)