Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guaigua/backend_django
https://github.com/guaigua/backend_django
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/guaigua/backend_django
- Owner: guaigua
- Created: 2022-02-26T12:22:14.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-01T19:32:02.000Z (11 months ago)
- Last Synced: 2024-02-01T20:42:57.420Z (11 months ago)
- Language: Python
- Size: 4.33 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
The backend of base source code
===================================To run locally, you can either:
- Install and run from a virtual environment
- Run with docker compose (see below)Install and run locally from a virtual environment
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#. Create a `Python 3.8+ virtualenv and activate it `_
## 1. Build and run the container
1. Install Docker.
2. Download this repository.
3. Create a `.env` file at the same level as this README, take the example in .env.example. This will be used by Docker.
4. On the command line, within this directory, do this to build the image and
start the container:docker-compose up --build
7. If that's successful you can then start it up. This will start up the database and web server, and display the Django `runserver` logs:
docker-compose up -d
8. Do you need create user manual (Example):
docker exec -it django_base python manage.py createsuperuser [email protected] [email protected]
9. Open http://0.0.0.0:8000 in your browser.
10. It's Workingggg