Skip to content

webkom/drikkeleker

Repository files navigation

drikkeleker

A collection of drinking games from the Abakus student association.

Getting Started

First, install the dependencies using yarn:

yarn

Then, run the development server:

yarn dev

To run locally:

Go to backend, create .env file and include something like this:

MONGO_URI=mongodb://127.0.0.1:27017/gameroom
PORT=3001

and then run:

cd gameroom-backend
yarn install
yarn start

and in the frontend: change the file in: src/app/game-room/[roomCode]/page.tsx and in src/app/lobby/page.tsx change the fetch URL to your local backend, e.g. http://localhost:3001 (the same port as in the .env file)

(Do this by commenting out line 56 in the [roomCode]/page.tsx file and uncommenting out line 56, and for the local lobby/page.tsx file you comment out 29 and uncomment 30)

then in the root folder run:

yarn
yarn dev

The site should now be running at http://localhost:3000.

Contributing

We would love your contributions. To find out how to, read our CONTRIBUTING.md

About

🧃 Webkoms mange morsomme drikkeleker, samlet på ett sted

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 9