An open API service indexing awesome lists of open source software.

https://github.com/ashbellett/platform-backend

A backend capable of authenticated CRUD operations using GraphQL, Apollo, MongoDB and Redis.
https://github.com/ashbellett/platform-backend

backend-services

Last synced: 3 months ago
JSON representation

A backend capable of authenticated CRUD operations using GraphQL, Apollo, MongoDB and Redis.

Awesome Lists containing this project

README

          

# platform-backend
A backend capable of authenticated CRUD operations using GraphQL, Apollo, MongoDB and Redis.

## Dependencies
- [Node.js](https://nodejs.org/)
- [MongoDB](https://www.mongodb.com/)
- [Redis](https://redis.io/)

## Instructions
Ensure a MongoDB database and Redis memory store are running in the host environment.
Install dependencies.
```
npm i
```
### Development
Copy environment variables.
```
cp sample.env .env
```
Lint code.
```
npm run lint
```
Run in development mode.
```
npm run dev
```
### Production
Transpile Typescript to Javascript.
```
npm run build
```
Run in production mode (requires previous build step).
```
npm run start
```

## Defaults
- Accessible on http://localhost:4000/graphql.
- MongoDB connection URI is mongodb://localhost:27017/test.
- Apollo playground accessible in development mode only.