git clone https://github.com/VuHoaBinh/Health-Care-Backend.git
Use the npm init command to create a package.json file for your application:
npm init
Install Express in the my-app directory and save it in the dependencies list:
npm install express
npm start
npm install --save [email protected] [email protected] [email protected] [email protected]
npm install --save-dev @babel/[email protected] @babel/[email protected] @babel/[email protected] [email protected]
npm install --save-dev [email protected]
-> link: https://sequelize.org/docs/v6/other-topics/migrations/#installing-the-cli
->link: https://mherman.org/blog/node-postgres-sequelize/
npm install --save [email protected]
npx sequelize-cli model:generate --name User --attributes firstName:string,lastName:string,email:string
npm install --save [email protected]
npx sequelize-cli db:migrate
npx sequelize-cli seed:generate --name demo-user
npx sequelize-cli db:seed:all
Getting started( with sequelize): https://sequelize.org/docs/v6/getting-started/
npx sequelize-cli db:migrate
npx sequelize-cli db:seed:all
npm install --save [email protected]
https://www.npmjs.com/package/bcrypt
https://stackoverflow.com/questions/49761768/how-to-do-where-in-sequelize-but-exclude-nested-model
-> https://github.com/coreybutler/nvm-windows/releases ( install 1.1.11) That's it, folks. Now you can have multiple versions of node installed on your machine. To recap, run:
nvm install <version>
to install a specified version.
nvm use <version>
to switch between different versions.
nvm list
to list all versions installed on your workstation.
nvm install 20.3.1
npx sequelize-cli db:migrate --to migration-create-user.js