Skip to content

sombriks/simple-sample-express-knex-node

Repository files navigation

simple sample node knex

hello world with migrations

npm install
npm run dev

migrations mini-how-to

  • New migration:
npx knex migrate:make another_migration
  • Running all up
npx knex migrate:latest
  • Running all down
npx knex migrate:rollback

See knexfile.js for database details

Docker image

Build with:

docker build -t testing-docker-node .

Run with:

docker run --rm -it testing-docker-node

You might need to delete image:

docker rmi testing-docker-node

deploy

Run fly login, fly launch and fly deploy.

Fly lauch will provision a Dockerfile and a github action. after that you can deploy by commit, which is great.

Releases

No releases published

Packages

No packages published