The server which handles authentication, session creation & management for the drinking game application. Written in Node.js, Express.js & TypeScript
- Node (12.14.1)
- NPM (6.14.1)
- MongoDB (4.2.2)
- Make sure MongoDB is running on your system or create an account at https://www.mongodb.com/atlas-signup-from-mlab
- Clone this repository.
- Run
cp example.env .env
and fill in your Mongo URI to the newely created .env file. - 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.
- Grab a generated JWT token from Here under
Encoded
and fill it in afterJWT_SECRET
in the newely created.env
file. - 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
- To install dependencies, run
- Open localhost:3000 in the browser