Files
Quatsh-Website/README.md
woutervermeer b1f38cc9d9
Some checks failed
Gitea Test. / tests (push) Failing after 11s
Update README.md
2026-07-13 05:57:31 +00:00

73 lines
1.3 KiB
Markdown

# Quatsh-Website
## Requirements
### Install make
Running this requires the use of "make" and docker.
~"make" tends to come pre-installed on linux but not on Windows, to install it on Windows I recommend using Chocolatey as follows~
```shell
choco install make
```
EDIT: I've swapped over to using [[scoop](https://github.com/ScoopInstaller/Scoop#readme)] for these kinds of installations.
```shell
scoop install make
```
### Install docker
<https://docs.docker.com/get-started/get-docker/>
## Running for the first time
### Env
Before running the container environment has to be setup first, so first run:
```
cp .env.template .env
```
Then make any changes to the .env file.
### Running the website
To run the website 3 options have been provided
#### Development
For development purposes only as the src folder has been mounted in the container to allow for the making of changes without rebuilding the entire image.
Properly utilising this also requires the DEBUG environment variable to be set to TRUE.
Setup to allow live-reloading without manual intervention after normal file changes (i.e. updates to css, html and python functions).
```shell
make dev
```
#### Testing
Runs the testing environment and exits.
```shell
make test
```
#### Production
Using `make prod` is identical but preferred here.
```shell
make prod
```
Or
```shell
make
```