Giter Club home page Giter Club logo

healthy-care_backend's Introduction

NODEJS

NODE (v20.3.1)

๐Ÿ’ป GETTING STARTED

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

start

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]

sequelize/cli

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]

Create Model

npx sequelize-cli model:generate --name User --attributes firstName:string,lastName:string,email:string

install mysql2

npm install --save [email protected]

running migrations

npx sequelize-cli db:migrate

Creating the first Seed

npx sequelize-cli seed:generate --name demo-user

running seeds

npx sequelize-cli db:seed:all

Getting started( with sequelize): https://sequelize.org/docs/v6/getting-started/

Run database

npx sequelize-cli db:migrate

Run seeder

npx sequelize-cli db:seed:all

hash

npm install --save [email protected] https://www.npmjs.com/package/bcrypt

hide password

https://stackoverflow.com/questions/49761768/how-to-do-where-in-sequelize-but-exclude-nested-model

Installing NVM Window ( install multiple node versions)

-> 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

run 1 migrate

npx sequelize-cli db:migrate --to migration-create-user.js

healthy-care_backend's People

Contributors

vuhoabinh avatar

Stargazers

Bao Hoang avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.