Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 1.42 KB

File metadata and controls

36 lines (22 loc) · 1.42 KB

flipthatcoin Vercel

This is a competitive coinflipping web application built using Next.js.

Tools

The application was built on the Next.js framework, which uses React. It was then deployed with Vercel. MongoDB was used for the database, which is hosted in the cloud on Atlas. Cron jobs were setup using EasyCron.

On the frontend, js-cookie and jsonwebtoken were used for user authentication and authorization.

In the backend, mongoose and bcryptjs were used to store and manipulate user data securely.

Setup

You can follow these steps to setup a local version of the application on your machine.

First, install the dependencies:

npm install

You can then create a .env.local file and add the following environment variables (which will automatically get registered into the app):

MONGO_PASSWORD=
JWT_SECRET=

Finally, you can run the application in development mode:

npm run dev

which will then be accessible at https://localhost:3000/