Un mini magasin en Angular4 pour le Front et NodeJS express/sequelize/mysql2 pour le Backend
{
"id": 3,
"email": "jean@email.com",
"password": "jean",
"createdAt": "2017-09-14T18:16:50.000Z",
"updatedAt": "2017-09-14T18:16:50.000Z"
}·
{
"id": 1,
"name": "Aspirateur",
"description": "Dyson",
"price": 300,
"createdAt": "2017-09-14T18:16:50.000Z",
"updatedAt": "2017-09-14T18:16:50.000Z"
}
Service Web disponibles
- Liste des users :
/users
- Liste des produtuis :
/products
Editez le fichier back/config/config.js
par exemple :
...
"development": {
"username": "mini-shop",
"password": "mini-shop",
"database": "mini-shop",
"host": "127.0.0.1",
"dialect": "mysql"
}
...
cd back
npm install
node_modules/.bin/sequelize db:migrate
node_modules/.bin/sequelize db:seed:all