Skip to content
A hello world GraphQL microservice implemented in a mix of Typescript and Javascript.
TypeScript JavaScript Dockerfile Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.devcontainer
.vscode
src
.dockerignore
.env.example
.eslintrc.json
.gitignore
.gitlab-ci.yml
Dockerfile
README.md ts support, linting update, better image, better ci runtime Dec 22, 2019
docker-compose.yml
knexfile.js
package-lock.json
package.json
start.sh
tsconfig.json
types.ts
webpack.config.js

README.md

Mircoservice Boilerplate

If you use this project, please give it a star so I know I need to maintain this fork.

Requirements

Setup

  • npm i
  • cp .env.example .env
  • Run npx webpack to generate the artifact, you only need to run this the first time.
  • Rename the container in docker-compose.yml
  • Rename the migrations table in knexfile.js

Running Locally

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 docker-compose up.

Migrations

To create a migration: npx knex migrate:make <migration name>. To run migrations: npm run migrate

Debugging

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.

You can’t perform that action at this time.