Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chaudinh/nodejs-cart
This repo is an update version of `mo-cart` repository as i've recently lost some code
https://github.com/chaudinh/nodejs-cart
Last synced: about 4 hours ago
JSON representation
This repo is an update version of `mo-cart` repository as i've recently lost some code
- Host: GitHub
- URL: https://github.com/chaudinh/nodejs-cart
- Owner: ChauDinh
- Created: 2019-05-20T07:15:32.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T15:01:09.000Z (almost 2 years ago)
- Last Synced: 2023-03-03T14:42:30.331Z (over 1 year ago)
- Language: HTML
- Size: 7.72 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eCommerce site with Node.js
This repo is an update version of `mo-cart` repository since I've recently lost some code.
## What we will cover?
- Use node.js for writing server
- Use pug(jade) for the template engine
- Use express.js and express router
- Responsive design with bootstrap4
- Use multer to upload file
- Deploy to Heroku
### Installation
```
git clone [email protected]:ChauDinh/nodejs-cart.gitcd nodecart/
npm install
npm run server:watch
```Or we can check the demo version here: nodejs.cart.netlify.com
### About middleware functions
```JavaScript
```
### About the form of db.json
```JSON
products: [
{
"name": "String",
"author": "String",
"published": "String",
"id": "shortid"
}
],
users: [
{
"username": "String",
"password": "hashed",
"email": "String",
"avatar": "static file",
"id": "shortid"
}
]```
### CSRF Attack (Cross-site request forgery)