8000 GitHub - O4epegb/dcss-stats: Player and game statistics for open source roguelike game Dungeon Crawl Stone Soup Online
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Player and game statistics for open source roguelike game Dungeon Crawl Stone Soup Online

Notifications You must be signed in to change notification settings

O4epegb/dcss-stats

Repository files navigation

Dungeon Crawl Stone Soup statistics app.

Buy Me A Coffee

Prerequisites

Bootstrap Local Development

yarn install && yarn bootstrap

It will install all npm dependencies, run Postgres with Docker Compose and create seeded database.

Run Development Mode

yarn dev

It will start both frontend and backend in development mode.

Install Packages and Update Versions

This is a yarn monorepo, so you need to install packages in the root folder with:

yarn install

Use yarn to install, other package managers are not recommended.

If you want to update package versions use:

yarn upgrade-interactive

Frontend

If you only want to run frontend, create .env.local file in apps/web folder if it doesn't exist and add:

NEXT_PUBLIC_ROOT_URL="https://dcss-stats.com"

Then run frontend with:

yarn dev:web

Backend

Start Postgres with Docker Compose:

yarn workspace @dcss-stats/api compose

If you want to run backend with different Postgres database, you can change DATABASE_URL env variable in .env.local file (create it if it doesn't exist in apps/api folder):

DATABASE_URL='postgresql://postgres:postgres@localhost:5432/dcssstats'

Then you can run migrations and seed the database:

yarn migrate

Run only the backend with:

yarn dev:api

Environment Variables

If you want to change some environment variables only for your local development then you need to make a .env.local file. Check other .env* files or search for NEXT_PUBLIC_ to see what variables are being used.

About

Player and game statistics for open source roguelike game Dungeon Crawl Stone Soup Online

Topics

Resources

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •  
0