Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sauberr/elearning_platform
https://github.com/sauberr/elearning_platform
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/sauberr/elearning_platform
- Owner: Sauberr
- License: mit
- Created: 2023-11-13T09:54:06.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-01T21:09:09.000Z (11 months ago)
- Last Synced: 2024-02-02T22:41:42.600Z (11 months ago)
- Language: Python
- Size: 23.8 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eLearning Platform
The project for study Django.#### Stack:
- [Python](https://www.python.org/downloads/)
- [PostgreSQL](https://www.postgresql.org/)
- [Redis](https://redis.io/)
- [Docker](https://www.docker.com/)## Local Developing
All actions should be executed from the source directory of the project and only after installing all requirements.
1. Firstly, create and activate a new virtual environment:
```bash
python3.11 -m venv ../venv
source ../venv/bin/activate
```
2. Install packages:
```bash
pip install --upgrade pip
pip install -r requirements.txt
```
## Run application
The uvicorn web server is used to run Django. The command to run looks like this:
```
py manage.py runserver
```
It must be run on the command line, always being in the root directory of the project.###Dockerfile
To run a web server (Django) inside a container, you need to uncomment the code inside the Dockerfile and have an already running PostgreSQL instance on your machine.
Code to run Dockerfile:
```
docker build .
```The command is also run from the root directory where the Dockerfile resides.
### Docker compose
To start all services (DB, Redis, web server (Django), Celery, Flower, Grafana, Prometheus), you need to use the docker-compose.yml file and the commands
```
docker compose build
docker compose up
```
Moreover, the `build` command needs to be run only if you changed something inside the Dockerfile, that is, you changed the logic for compiling the image.