Code Monkey home page Code Monkey logo

flask-photowebapp's Introduction

# Prerequisites
- Python 3.x


# Manual deployment
## Windows
1. Go to src directory, create and activate virtual environment, and install dependencies:
	python.exe -m venv venv
	venv\Scripts\activate.bat
	pip3 install -r requirements.txt
2. Launch Python and initialize database:
	python.exe
	from gscontrol import db
	db.create_all()
	exit()

## Unix/Linux
1. Go to src directory, create and activate virtual environment, and install dependencies:
	python3 -m venv venv
	. venv/bin/activate
	pip3 install -r requirements.txt
2. Launch Python and initialize database:
	python3
	from gscontrol import db
	db.create_all()
	exit()


# Configuring scheduled tasks execution
## Unix/Linux
1. Edit path to src directory in planner.sh and allow script execution:
	nano planner.sh
	chmod +x planner.sh
2. Schedule script execution to every minute:
	crontab -e
	* * * * * /path/to/src/planner.sh
	crontab -l


# Launching application
## Windows
1. Go to src directory and activate virtual environment:
	venv\Scripts\activate.bat
2. Set enviroment variables and launch application:
	set FLASK_APP=gscontrol
	set FLASK_ENV=development
	flask run --host=0.0.0.0 --port=5000

## Unix/Linux
1. Go to src directory and activate virtual environment:
	. venv/bin/activate
2. Set enviroment variables and launch application:
	export FLASK_APP=gscontrol
	export FLASK_ENV=development
	flask run --host=0.0.0.0 --port=5000

flask-photowebapp's People

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.