Code Monkey home page Code Monkey logo

guesswhatproject-backend's Introduction

GuessWhatProject-Backend

/////......Step by step......./////// Special links for getting more about backend packages and command lines are https://sequelize.org/master/index.html
https://github.com/sequelize/cli

Creating a empty folder in the local machine Go into the folder
Git init
Npm init
Install NPM packages we need to install sequelize,nodemon,express,
Postgres, sequelize-cli
a. For Installing Sequelize - npm install sequelize
b. For installing Nodemon- npm install nodemon
c. For installing express- npm install express
d. For installing postgres- npm install pg
e. For installing sequelize-cli- npm install sequelize-cli

Sequelize init- It's going to create all folders automatically
a. npx sequelize init
b. npx sequelize-cli model:generate --name Word --attributes value:string
c. Create new Database in postgres
d. Go to config folder and open config.json.Edit development object with username, password, database name and dialect:Postgres
e. Run migration→ npx sequelize-cli db:migrate
f. Run seeders→ npx sequelize-cli db:seed:all
g. You can undo all seeders using the command “ npx sequelize-cli db:seed:undo:all”
h. Add this line in scripts of package.json "dev": "nodemon ./index.js"
i. npm run dev
j. Check your endpoints in Postman

guesswhatproject-backend's People

Contributors

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