Skip to content

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

Notifications You must be signed in to change notification settings

yantoiswanto/todo-typescript-express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published