GithubHelp home page GithubHelp logo

shinushaju / olearn Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 61.14 MB

An online course marketplace built with Python Flask, HTML, CSS and JavaScript.

Python 20.17% CSS 8.17% JavaScript 2.11% HTML 69.49% Dockerfile 0.05%
css3 flask html5 javascript python

olearn's Introduction

flask-app

Install Virtual Environment

Python 3 comes with a virtual environment module called venv preinstalled. If you have Python 3 installed, skip this step.
If you have Python 2, follow the given instructions:

Install virtualenv on Windows:

py -2 -m pip install virtualenv

Install virtualenv on Linux:

sudo apt install python-virtualenv

Create an Environment 'env'

Run the commands:

Create environment on Windows:

For Python 3:

py -3 -m venv env

For Python 2:

py -2 -m virtualenv env

Create environment on Linux:

For Python 3:

python3 -m venv env

For Python 2:

python -m virtualenv env

Activate the Environment

Run the commands:

On Windows:

env\Scripts\Activate.ps1

On Linux:

source env/bin/activate

Install Flask

python -m pip install flask

Set the FLASK_APP Environment Variable.

Run the commands:

On Windows:

setx FLASK_APP=app
setx FLASK_ENV=development

On Linux:

export FLASK_APP=app
export FLASK_ENV=development

Run the Flask App

flask run

Git Commands

git init - Initializes a git repository

git pull https://github.com/ShinuShaju/flask-app - pulls the code from remote repository

git add . or git add filename - adds a file/files to the git staging area
git commit -m "commit message in double quotes"

git branch -m main - sets main branch as main
git remote add origin https://github.com/ShinuShaju/flask-app
git remote set-url origin https://github.com/ShinuShaju/flask-app

git push -u origin main - push to a remote git repository

olearn's People

Contributors

shinushaju avatar mayopik avatar sjithu007 avatar gowthamithiramdasu avatar anirudh6060 avatar sravanipalaparthi avatar annapoorna135 avatar sripathimaheswari avatar santhra-martin avatar atuljayan avatar karaikandasamy avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar  avatar  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.