Games-of-Switzerland / swissgamesgarden

πŸ‘Ύ πŸ‡¨πŸ‡­ Games of Switzerland - React Frontend Application
https://swissgames.garden
GNU General Public License v2.0
14 stars 1 forks source link
nextjs react storybook tailwindcss

Swiss Games Garden

The list of Swiss video games is, although you might think it is not, massive. This website is here to make the most exhaustive list of all the creations from our country. It is mainly intended for journalists, searchers and all the people in the game development world. It can also be used at your discretion to shut up people saying "we don't make video games in Switzerland, you suck". Those degenerates.

🐳 Docker Install

Project setup

cp docker-compose.override-example.yml docker-compose.override.yml

Update any values as needed, example when you already use the 8083 port:

services:
  # Next app server
  next_app:
    hostname: next_app
    ports:
      - "8083:3000"
cp .env.example .env

Update any values as needed to point on proper backend endpoints:

NEXT_PUBLIC_ELASTICSEARCH=http://localhost:8080/search
NEXT_PUBLIC_SERVER_ELASTICSEARCH=http://localhost:8080/search
NEXT_PUBLIC_JSONAPI=http://localhost:8080/G70VW4Y9sP/jsonapi
NEXT_PUBLIC_SERVER_JSONAPI=http://localhost:8080/G70VW4Y9sP/jsonapi
NEXT_PUBLIC_AUTOCOMPLETE=http://localhost:8080/autocomplete
:NEXT_PUBLIC_ENV=production

Don't forget to set NEXT_PUBLIC_ENV, which will allow the site to be indexed when set to production.

Project bootstrap

docker-compose build --pull
docker-compose up --build -d

Project setup

πŸš› (optional) Local Install

The website is built with NextJS and is linked to a Drupal website with Elasticsearch.

Install all dependencies:

yarn

Start the NextJS server:

yarn dev

Start the Storybook server:

yarn storybook

πŸš€ Deploy

First time

# You need to have ruby & bundler installed
$ bundle install

Each time

We use Capistrano to deploy:

bundle exec cap -T
bundle exec cap staging deploy

🀷 Authors

πŸ‘¨β€πŸ’» Toni Fisler

πŸ‘¨β€πŸ’» Kevin Wenger

πŸ‘©β€πŸ’» Camille LΓ©tang

πŸ‘¨β€πŸ’» Pierre Georges

🀝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check issues page.