Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/o4epegb/dcss-stats

DCSS stats frontend repo
https://github.com/o4epegb/dcss-stats

dcss dungeon-crawl-stone-soup

Last synced: 3 months ago
JSON representation

DCSS stats frontend repo

Awesome Lists containing this project

README

        



# [DCSS Stats](https://dcss-stats.com/)

[Dungeon Crawl Stone Soup](https://crawl.develz.org/) statistics app.

Buy Me A Coffee

### Prerequisites

- [Node.js](https://nodejs.org/)
- [Yarn](https://yarnpkg.com/)
- (for the BE) [Docker Compose](https://docs.docker.com/compose/) or local Postgres database

### Bootstrap local development

```sh
yarn bootstrap
```

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

### Run development mode

```sh
yarn dev
```

It will start both frontend and backend in development mode.

### Install packages (if not using `yarn bootstrap`)

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

```sh
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, point `NEXT_PUBLIC_ROOT_URL` env variable to the production backend at `https://dcss-stats.com`:

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

Then run frontend with:

```sh
yarn dev --filter=@dcss-stats/web
```

### Backend

Start Postgres with Docker Compose:

```sh
yarn workspace @dcss-stats/api compose
```

Run backend with:

```sh
yarn dev --filter=@dcss-stats/api
```

### Environment variables

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