Learning django by creating a budgeting application
- Python 60.7%
- HTML 36%
- JavaScript 1.6%
- Shell 0.7%
- Nix 0.5%
- Other 0.5%
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| apps | ||
| budgetmaker | ||
| static | ||
| templates | ||
| .dockerignore | ||
| .env.example | ||
| .flake8 | ||
| .gitignore | ||
| .podmanignore | ||
| .pre-commit-config.yaml | ||
| docker-compose.override.yml | ||
| docker-compose.prod.yml | ||
| docker-compose.yml | ||
| Dockerfile | ||
| entrypoint.sh | ||
| LICENSE.txt | ||
| manage.py | ||
| package-lock.json | ||
| package.json | ||
| pyproject.toml | ||
| README.md | ||
| requirements-dev.txt | ||
| requirements.txt | ||
| shell.nix | ||
| start-dev.sh | ||
| start.sh | ||
bYolk
Nest Egg -> Egg Yolk + Broke = bYolk
Frameworks and Technologies used:
- Django
- DaisyUI
- Docker/Podman
Installation instructions
Linux
Fedora
- Download and install Docker - Instructions can be found here: https://docs.docker.com/desktop/setup/install/linux/fedora/
- Clone the repository, or download as a zip and extract
git clone https://git.silverbricc.com/JamesMakela/bYolk.git
- Navigate to the directory in your terminal
- Copy the
.env.exampleto.env
cp .env.example .env
5. Open and edit the .env file in your text editor
1. Set the db password to a password of your choosing
2. Set the django secret key
- You can generate this with the below:
python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'
- If you are running in production mode, you will need to set the
CSRF_TRUSTED_ORIGINSandALLOWED_HOSTSin the.envfile - Ensure NPM is installed - instructions here: https://nodejs.org/en/download
- Run with
./start-dev.sh, or./start.shif running in production mode - Access the application at either
127.0.0.1:8000or the URL you have set up if running in production
NixOS
- Ensure you have direnv installed: https://wiki.nixos.org/wiki/Direnv
- Clone the repository, or download as a zip and extract
- Navigate to the directory in your terminal
- Copy the
.env.exampleto.env
cp .env.example .env
5. Open and edit the .env file in your text editor as above
- You may want to set the CONTAINER_RUNTIME in the .env file to podman, or change the shell.nix to use docker if you prefer
6. In your terminal type direnv allow
7. Run with ./start-dev.sh, or ./start.sh if running in production mode
8. Access the application at either 127.0.0.1:8000 or the URL you have set up if running in production
Windows
- Instructions to come later