https://github.com/andyklimczak/andy-django-boilerplate
https://github.com/andyklimczak/andy-django-boilerplate
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/andyklimczak/andy-django-boilerplate
- Owner: andyklimczak
- Created: 2024-01-18T01:55:58.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-10T04:49:19.000Z (4 months ago)
- Last Synced: 2025-02-10T05:27:50.574Z (4 months ago)
- Language: Python
- Size: 34.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Django boilerplate
## Local setup
1. Install docker
2. Copy `.env.example` to `.env`
3. Run `make run`
4. Migrate with `make migrate`
5. Run tests with `make test`
6. Create a superuser with `make createsuperuser`
7. See all commands able to be run locally with `make`
8. Visit http://localhost:8000
9. Signin with superuser at http://localhost:8000/adminz
10. Health check at http://localhost:8000/healthz### Delete local data
To delete all data locally while keeping the tables themselves, run:
```shell
make purge
```### Django shell
To start up, access, and see data through the shell, start the server and run:
```shell
make shell
```### Run tests
```shell
make test
```### Add dependency
1. Add to `requirements.txt`
2. `make build`