Giter Site home page Giter Site logo

lms-copy's Introduction

Learning Management System

This project was developed with flask as the Database and Internet Engineering final project, because of the limited time and the purpose of this project which was to work with databases in a website, I did not consider some security features which should be considered in the production phase.

For running this on your computer first make sure you have python3.6 or later , then install virtualenv package.

pip install virtualenv

Create a virtual environment in main directory of the project (same folder as this file) preferably with a name like venv, env, .venv or .env so .gitignore file can ignore it without any modification, I assumed you're gonna use .venv.

virtualenv .venv

Activate your virtual environment:

source .venv/bin/activate

Or if you're still using windows:

.\venv\Scripts\activate

Then install all of the project's dependencies without affecting anything on your computer.

pip install -r requirements.txt

You should set 2 environment variable, FLASK_APP and FLASK_DEBUG, in GNU/Linux or macOS:

export FLASK_APP=main.py
export FLASK_DEBUG=1

In windows:

set FLASK_APP=main.py
set FLASK_DEBUG=1

FLASK_APP is the name of the flask app file, and FLASK_DEBUG should be 0 or 1, if it's 1 we have access to hot reload and some more features in development phase.

In the app directory copy local_settings.py.sample to local_settings.py and provide required variables for connecting to the database, keep in mind that for security reasons this file is ignored by .gitignore.

In the app directory run the server with this command:

flask run

lms-copy's People

Contributors

smmousavisp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.