https://github.com/amoghmadan/typescript-express-graphql-starter
Kick-starter to your GraphQL application.
https://github.com/amoghmadan/typescript-express-graphql-starter
docker express graphql mongoose node supertest typescript
Last synced: 28 days ago
JSON representation
Kick-starter to your GraphQL application.
- Host: GitHub
- URL: https://github.com/amoghmadan/typescript-express-graphql-starter
- Owner: amoghmadan
- License: mit
- Created: 2020-07-16T17:48:49.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-06-16T12:48:42.000Z (12 months ago)
- Last Synced: 2025-05-07T05:06:28.663Z (28 days ago)
- Topics: docker, express, graphql, mongoose, node, supertest, typescript
- Language: TypeScript
- Homepage: https://github.com/amoghmadan/TypeScript-Express-GraphQL-Starter
- Size: 349 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TypeScript-Express-GraphQL-Starter
Kick-starter to your GraphQL application.
`Node`, `Express`, `MongoDB`, `CLI` and more.
## Introduction
The project is a skeleton for an experss application and the way I like to configure it.
This structure is in no way a perfect fit all the projects, but might be a great fit for most big applications.
It contains login, logout and details for accounts, using custom token generation. The CLI provides user creation using commands and password change functionality as well.
## How to setup?
- Clone this project. PS: Delete the package-lock.json. You might want to rename the name & author in package.json and maintainer in Dockerfile.
- Run: -
```bash
npm i --location=project
```
- Add an environemnt file `.env` to the root of the project and set GRAPHIQL & MONGODB_URI. Typically: -
```
GRAPHIQL = true // Only in development environment
MONGODB_URI = mongodb://127.0.0.1:27017/
```
- Create an admin user: -
```bash
npm run dev createsuperuser
```
- Run the development server: -
```bash
npm run dev bootstrap
```