/SurfSpotManagerrz-Backend

NodeJs backend for finding and managing surf spots.

Primary LanguageTypeScriptMIT LicenseMIT

SurfspotFinderrz

NodeJs + Apollo Server + MongoDB boilerplate project.

About

CRUD logic for surf spots.

Setup

Clone the repository

git clone git@github.com:Kn3cht/SurfSpotManagerrz.git

Install all dependencies

yarn install

Generate ts for schema

yarn generate

Env variables Set the following variables before running the project:

PORT=<local-deployment-only> 
MONGO_URL=<e.g. mongodb cluster> 
MONGODB_APPLICATION_DATABASE=<mongo-database>
MONGO_INITDB_ROOT_USERNAME=<mongo-root-username>
MONGO_INITDB_ROOT_PASSWORD=<mongo-root-password>

JWT_SECRET=<jqt-secret>

Run local dev instance

yarn dev

The gql endpoint can then be accessed via the url:

http://localhost:<env-port>/graphql