Skip to content

rafifirmansyah/expressjs-postgresql-with-migrations-and-seeds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExpressJS PostgreSQL with Migrations and Seeds

The ExpressJS PostgreSQL with migrations and seeds using knex (ES6 Style).

Database Schema

Database Schema

Requirements

  • Node JS ^17
  • PostreSQL ^13

Getting Started

  1. Install requirements and create your database.
  2. Clone this repo.
  3. Change directory to cloned repo.
  4. npm install
  5. Fill src/knexfile.js with your database credential.
  6. npx knex migrate:latest --knexfile=src/knexfile.js
  7. npx knex seed:run --knexfile=src/knexfile.js
  8. npm run dev.
  9. Go to browser and enter 'http://localhost:3000/users-with-phone-numbers' on the address bar to get users data.
  10. done.

About

The ExpressJS PostgreSQL with migrations and seeds using knex (ES6 Style).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published