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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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.


Languages

Language:TypeScript 51.0%Language:Python 35.3%Language:JavaScript 11.2%Language:Dockerfile 2.1%Language:CSS 0.5%