If you use this project, please give it a star so I know I need to maintain this fork.
- Docker/Docker Compose
- VSCode and the Remote - Containers Extension for VSCode (Optional, this allows for realtime backend debugging)
cp .env.example .env
npx webpackto generate the artifact, you only need to run this the first time.
- Rename the container in
- Rename the migrations table in
If you are using the Remote - Containers extension:
Click the >< button in the bottom left of VSCode and select "Reopen in container"
else, just run
To create a migration:
npx knex migrate:make <migration name>.
To run migrations:
npm run migrate
You need the Remote - Containers extension to debug this project. Once you have it, make sure VSCode is attached to the container, and then simply select the "Debugging" panel on the left, and then select the "Attach in Docker" configuration and hit play.