yuezheng2006 / express-todo-list

Source code for the example REST API with Express, Typescript, Sequelize and postgresql

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

todo-typescript-express

Source code for the example REST API with Express, Typescript, Sequelize and postgresql

  1. Clone The Repo

    git clone git@github.com:yantoiswanto/todo-typescript-express.git
    cd todo-typescript-express
  2. Install pnpm

    npm i pnpm
  3. Install dependencies

    pnpm install
  4. Create Database PostgreSQL

    CREATE DATABASE db_todolist;
  5. Setup .env.example to .env

    PORT=3000
    
    NODE_ENV=devepolment
    
    DB_HOST=localhost
    DB_USERNAME=postgres
    DB_PASSWORD=#setup password
    DB_PORT=5432
    DB_NAME=db_todolist
  6. Migration Database with Sequelize

    npx sequelize-cli db:migrate
  7. Build ts to js

    pnpm run ts
  8. Run dev

    pnpm run dev

About

Source code for the example REST API with Express, Typescript, Sequelize and postgresql


Languages

Language:TypeScript 62.2%Language:JavaScript 37.8%