https://github.com/niklasmerz/shoppinglist
https://github.com/niklasmerz/shoppinglist
django hacktoberfest python
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/niklasmerz/shoppinglist
- Owner: NiklasMerz
- License: mit
- Created: 2021-05-15T23:31:17.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-07-28T13:59:33.000Z (almost 3 years ago)
- Last Synced: 2025-03-27T18:53:22.903Z (about 1 year ago)
- Topics: django, hacktoberfest, python
- Language: JavaScript
- Homepage: https://shopping.merz.dev
- Size: 4.16 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 31
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Shopping List App
To run this, after cloning the repository:
```bash
sudo apt install libpq-dev postgresql
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
./manage.py migrate
./manage.py createsuperuser
./manage.py loaddata data.json
./manage.py runserver
# Save requirements
pip freeze > requirements.txt
# Start with webpack build for old web UI
python manage.py webpack --build && ./manage.py collectstatic && ./manage.py runserver
```
Go to `http://localhost:8000`
Log into `http://localhost:8000/admin` for the admin interface.
Go to `https://localhost:8000/o/applications` to register the webapp as an OAuth application. Use the client id from `environement.ts` for local development. *Client type* is public and authorization type is "Ressource owner password".
The webapp runs on `http://localhost:8100`.
# Open API
* API URL: `http://localhost:8000/api/`
* API Scheme: `http://localhost:8000/api/openapi`
* Generate schema: `./manage.py generateschema --file openapi-schema.yml`
* Update TS Client: `cd webapp && npm run generate`