A backend capable of authenticated CRUD operations using GraphQL, Apollo, MongoDB and Redis.
Ensure a MongoDB database and Redis memory store are running in the host environment. Install dependencies.
npm i
Copy environment variables.
cp sample.env .env
Lint code.
npm run lint
Run in development mode.
npm run dev
Transpile Typescript to Javascript.
npm run build
Run in production mode (requires previous build step).
npm run start
- Accessible on http://localhost:4000/graphql.
- MongoDB connection URI is mongodb://localhost:27017/test.
- Apollo playground accessible in development mode only.