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.
- Host: GitHub
- URL: https://github.com/ashbellett/platform-backend
- Owner: ashbellett
- License: mit
- Created: 2020-07-26T17:11:52.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T12:42:06.000Z (over 3 years ago)
- Last Synced: 2025-09-02T03:43:48.769Z (11 months ago)
- Topics: backend-services
- Language: TypeScript
- Homepage:
- Size: 2.12 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.