Skip to content

chesslablab/website

Repository files navigation

Website

License: MIT Contributing

Website intended to learn and play chess online.

Install and Setup

Clone the chesslablab/website repo into your projects folder. Then cd the website directory and install the Composer dependencies:

composer install

Set up the browser environment variables:

cp assets/env.example.js assets/env.js

Clear the cache:

php bin/console cache:clear

Download the assets:

php bin/console importmap:install

Compile the assets:

php bin/console asset-map:compile

Set up file permissions for the var/cache folder:

sudo chmod 775 -R var/cache
sudo chown $USER:www-data -R var/cache

Set up file permissions for the var/log folder:

sudo chmod 775 -R var/cache
sudo chown $USER:www-data -R var/log

Run the MPA on a Docker Container

First things first, make sure to have created the fullchain.pem and privkey.pem files into the docker/nginx/ssl folder. Then run the MPA:

Development

Run the app on port 9443.

docker compose -f docker-compose.dev.yml up -d

Production

Run the app on port 443.

docker compose -f docker-compose.prod.yml up -d

License

The MIT License.

Contributions

See the contributing guidelines.

Happy learning and coding!