Skip to content

gudchalmers/chs-mc-website

Repository files navigation

CHS MC Website

This is the CHS MC website that can be found here mc.chs.se.

The source code for the old CHS MC website can be found here on github.

Development

Backend

cd frontend
npm install
npm run prod
cd ..

cd backend
npm install
npx nodemon index.js

Frontend

cd backend
npm install
node .

# In another terminal
cd frontend
npm install
npm run dev

Deployment

Using docker-compose:

version: '3'

services:
  chs-mc-website:
    image: ghcr.io/gudchalmers/chs-mc-website:main
    restart: unless-stopped
    ports:
      - "3000:3000"
    environment:
      PORT: 3000
      DB_USER: chs-mc-website
      DB_PASS: hunter2
      DB_NAME: mc_stats
      DB_HOST: mariadb
      MAIL_FROM: hello@example.com
      MAIL_NAME: "Your Name"
      MAIL_HOST: smtp-relay.gmail.com
      MAIL_PORT: 465
      MAIL_USER: whatever
      MAIL_PASS: hunter2
      MAIL_SSL: true
    depends_on:
      - mariadb
  mariadb:
    image: mariadb:11
    volumes:
      - mariadb:/var/lib/mysql
    restart: unless-stopped
    environment:
      MYSQL_ROOT_PASSWORD: hunter2
      MYSQL_DATABASE: mc_stats
      MYSQL_USER: chs-mc-website
      MYSQL_PASSWORD: hunter2

Copy the latest version of the dynmap website files from the plugin folder to the dist/dynmap folder.

License

MIT