Clone this repository anywhere on your machine
$ git clone git@github.com:ilpes/node-playground.git
$ cd node-playground
# Set up the desired ports for the services and edit the `.env` file.
$ cp .env.example .env
$ docker-compose build
$ docker-compose run --rm node npm install
Migrate and seed the database
$ docker-compose run --rm node npm run db:migrate
$ docker-compose run --rm node npm run db:seed
Start a development server
$ docker-compose run --rm -p 3000:3000 node npm run dev
Make changes to your code and navigate to http://localhost:3000/quartz-movement-what-is-a-quartz-watch-and-how-does-it-work in your browser to preview your site.
$ docker-compose run --rm -p 3000:3000 node npm run start
Navigate to http://localhost:3000/quartz-movement-what-is-a-quartz-watch-and-how-does-it-work in your browser.
$ docker-compose run --rm node npm run test