Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nafizpervez/online_learning_platform
Online Learning Platform for students to enroll into courses, for admins to create courses and handle the enrollment and to generate card list of courses and it's enrollments.
https://github.com/nafizpervez/online_learning_platform
docker docker-compose fastapi fastapi-docker github-actions jenkins-pipeline kubernetes nextjs postgresql pydantic-models pytest python react sqlalchemy sqlite tailwindcss typescript
Last synced: 3 months ago
JSON representation
Online Learning Platform for students to enroll into courses, for admins to create courses and handle the enrollment and to generate card list of courses and it's enrollments.
- Host: GitHub
- URL: https://github.com/nafizpervez/online_learning_platform
- Owner: nafizpervez
- Created: 2023-12-19T18:10:06.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-02T14:58:40.000Z (7 months ago)
- Last Synced: 2024-09-29T18:05:13.079Z (3 months ago)
- Topics: docker, docker-compose, fastapi, fastapi-docker, github-actions, jenkins-pipeline, kubernetes, nextjs, postgresql, pydantic-models, pytest, python, react, sqlalchemy, sqlite, tailwindcss, typescript
- Language: TypeScript
- Homepage:
- Size: 237 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Online Learning Platform
a composed image developed using fastapi and next.js, containerization using docker, database adapter initialized with postgres and sqlite databases and CI/CD intigration using Github-Actions also Jenkins as an alternative.
## Build Steps for the whole container (backend, postgres, pgadmin)
run docker container
```
docker compose up
```## Build steps only the backend
build newer image command:
```
docker build -t online_learning_image .
```docker run command:
```
docker run -d --name demo_python -p 8000:8000 online_learning_image
```remove older image command:
```
docker stop demo_python && docker rm demo_python
```## run tests
```
pytest test/test_main.py
```## run without docker
start postgreg database server in the cmd
```
pg_ctl start -D "C:\Program Files\PostgreSQL\16\data"
```install dependencies
```
pip install --no-cache-dir --upgrade -r requirements.txt
```run uvicorn
```
uvicorn app.main:app --reload
```