Berryllium is the software behind the mod-hosting website ZooBerry. It is a Django app!
(Still in development and not yet live)
- Clone the repository
git clone git@github.com:zooberryorg/berryllium.git-
Create a Python virtual environment and activate it
-
Install the dependencies
pip install -r requirements.txt-
Create a
.envfile in the root of the project and add the following environment variables (no variables yet) -
Build containers
docker build . -t berrylliumLocal server instance will be accessible at http://localhost:8001
- Run the containers
docker-compose upTo setup UX/UI development, make sure you have Node.js and npm installed. In a separate terminal, run Tailwind CLI to watch for changes in the templates and update the project's CSS file:
npx @tailwindcss/cli -i ./.tw/input.css -o ./berryllium/shared/static/shared/css/be.css --watchFor more information, see the Tailwind CLI documentation.
For Django templates, we use djlint. It can be used as both a linter and a formatter.
To lint:
djlint .To format:
djlint . --reformatFor Python code linting and formatting, we use Ruff.
To lint:
ruff checkTo format:
ruff format