dropshiping-ecom-shop-portal
Description
Setup ecom shop, orders, customers, products, NODEJS, MYSQL
- express generate https://expressjs.com/en/starter/generator.html
- Db migration https://sequelize.org/master/manual/migrations.html
- eslint https://medium.com/dailyjs/adding-eslint-to-your-project-7bd4feca35a8
- handle error and logging https://www.toptal.com/nodejs/node-js-error-handling
- validator middleware https://dev.to/joaohencke/validating-schema-with-yup-2iii
- MVC https://medium.com/stackavenue/why-to-use-service-layer-in-spring-mvc-5f4fc52643c0
- Setup debug Webstom https://www.jetbrains.com/help/webstorm/running-and-debugging-node-js.html#nodemon
- Unit test: https://github.com/istanbuljs/nyc, istanbuljs/nyc#846, https://www.chaijs.com/, https://mochajs.org/
Install && Setup
- Install mysql 8 -> https://dev.mysql.com/doc/refman/8.0/en/installing.html
- Install webstome => https://www.jetbrains.com/webstorm/promo/?gclid=Cj0KCQiAk53-BRD0ARIsAJuNhptievZsTlz4MDRzFMbAk0-VEtHmU_-Iqt-US3XbdW3cikC5SNbrlfkaAnHAEALw_wcB&gclsrc=aw.ds
- Install NODEJS -> https://nodejs.org/en/download/
- Install Yarn -> https://classic.yarnpkg.com/en/docs/install/#mac-stable
- Install git https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
- Read Readme https://github.com/hongduclam/dropshiping-ecom-shop-api --- Setting Database
- create schema ds_store;
- yarn migrate --- Run BE code
- clone source code: git clone https://github.com/hongduclam/dropshiping-ecom-shop-api
- creating .env file and put this
NODE_ENV=development
PORT=8080
- yarn && yarn start --- RUn Unit test
- yarn test