1.0.0 • Published 4 years ago

drinking-game-app-server v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Automatic Deployment

Node API with Express Server

Description

The server which handles authentication, session creation & management for the drinking game application. Written in Node.js, Express.js & TypeScript

What you need to run this code

  1. Node (12.14.1)
  2. NPM (6.14.1)
  3. MongoDB (4.2.2)

How to run this code

  1. Make sure MongoDB is running on your system or create an account at https://www.mongodb.com/atlas-signup-from-mlab
  2. Clone this repository.
  3. Run cp example.env .env and fill in your Mongo URI to the newely created .env file.
  4. Create a Google Developer Profile and create a new project. OAuth Credentials must be created for each platform you wish to login with Google on e.g web, iOs & Android. Once created fill in your Client IDs for each in the .env file created in step 4.
  5. Grab a generated JWT token from Here under Encoded and fill it in after JWT_SECRET in the newely created .env file.
  6. Open command line in the cloned folder,
    • To install dependencies, run npm install
    • To run the application in development, run npm run dev
    • To build the application, run npm run build
  7. Open localhost:3000 in the browser