Skip to content

NewbieCoder99/nodejs_learning

Repository files navigation

Setup

  • Copy this source code to folder config and filename is config.json or copy file config.example.json

      {
      	"development": {
          	"username": "root",
          	"password": null,
          	"database": "nodejs",
          	"host": "127.0.0.1",
          	"dialect": "mysql" 
      	},
      	"test": {
      	    "username": "root",
      	    "password": null,
      	    "database": "nodejs",
      	    "host": "127.0.0.1",
      	    "dialect": "mysql"
      	},
          "production": {
      	    "username": "root",
      	    "password": null,
      	    "database": "nodejs",
      	    "host": "127.0.0.1",
      	    "dialect": "mysql"
      	}
      }
    
  • Copy this file .env.example and then rename to .env place in your root project

ORM With Sequelize

ORM With Sequelize

About Promise

About Promise

HTML To PUG Generator

HTML To PUG Generator

Screenshoot

Alt text

Run With Nodemon

nodemon ./server.js 127.0.0.1 3000

Running Migrate

npx sequelize-cli db:migrate

Running Seeder

npx sequelize-cli db:seed:all

Generate Migration

npx sequelize-cli model:generate --name Table --attributes field1:string,field2:string

About

First Project With NodeJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published