https://github.com/webkom/drikkeleker
🧃 Webkoms mange morsomme drikkeleker, samlet på ett sted
https://github.com/webkom/drikkeleker
Last synced: about 1 month ago
JSON representation
🧃 Webkoms mange morsomme drikkeleker, samlet på ett sted
- Host: GitHub
- URL: https://github.com/webkom/drikkeleker
- Owner: webkom
- Created: 2024-04-16T15:52:30.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2025-02-24T13:22:46.000Z (over 1 year ago)
- Last Synced: 2025-02-24T13:24:36.818Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://drikkeleker.abakus.no
- Size: 370 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# drikkeleker
> A collection of drinking games from the Abakus student association.
## Getting Started
First, install the dependencies using yarn:
```bash
yarn
```
Then, run the development server:
```bash
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:
```bash
cd gameroom-backend
yarn install
yarn start
```
and in the frontend:
change the file in: src/app/game-room/[roomCode]/RoomLobby.tsx
and in src/app/lobby/RoomLobby.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]/RoomLobby.tsx file and uncommenting out line 56, and for the local lobby/RoomLobby.tsx file you comment out 29 and uncomment 30)
then in the root folder run:
```bash
yarn
yarn dev
```
The site should now be running at [http://localhost:3000](http://localhost:3000).
## Contributing
We would love your contributions. To find out how to, read our [CONTRIBUTING.md](./CONTRIBUTING.md)