Skip to content

MahdiPeydai/LMS

Repository files navigation

LMS

LMS is a website that you can sell courses with different categories from different instructors.
In admin panel you can create,update and delete users. you can set groups for them and set permission for each group. you can manage instructors and their courses. also you can set courses in different categories.
Users in web site can search for courses and filter their category,level,price and duration. Alos they can see instructors and their profile. Users also have a dashboard that they can manage their profile and can see their courses. Instructors can see the report of their courses.

Development

  • Django framework
  • Docker
  • MySQL database
  • Redis
  • Nginx
  • Webpack

How To Run

This application works on Docker and first you need to install < Docker Desktop >
after cloning the repo create a .env file in project directory and set these configs in it:

  • SECRET_KEY
  • MYSQL_ROOT_PASSWORD
  • MYSQL_DATABASE


then you have to go to project directory and run docker-compose:

$ docker compose build

afte, to run the containers:

docker compose up

after containers ran successfully you need first to initialize migrations on database. To do this you need to exec mysql container and create a database:

$ docker exec -it onlinelearning-mysql-1 mysql -u root -p

then set database name in .env file.
after that you need to exec django_app container and do migrations:

$ docker exec -it onlinelearning-mysql-1 sh
$ python3 manage.py makemigrations
$ python3 manage.py migrate

after bundle the asset files(still in django_app container):

$ npm install $ npm run build

then you need to collect static files from apps to static folder(still in django_app container):

$ python3 manage.py collectstatic
(maybe you should restart nginx container to apply changes)

after you need to create a superuser for admin and it's done. (i prefer to create admin group with all permission instead of superuser)

Enjoy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published