A simple example project for Apollo Server in Typescript including ESlinkt and VSC-Config.
The following tutorials helped with the creation:
- How to build an Apollo GraphQL server with TypeScript and Webpack Hot Module Replacement
- How to set up Eslint with Typescript in VS Code
After downloading the project run cp .env.example .ev and configure the .env file. Then run npm install and the project is ready to use.
| Command | Aliases | Description |
|---|---|---|
npm run build:production |
npm run build |
Builds the app with the production settings. |
npm run build:dev |
npm run build:development |
Builds the app with the development settings. |
npm run start |
- | Starts the app with the .env file. |
npm run eslint |
- | Run ESLint to check the code style. |