Skip to content

pwgn/flaskAppArchitecture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inspired by: https://github.com/mattupstate/overholt

System requirements

sudo apt-get install python-dev python-pip postgresql-9.3 postgresql-server-dev-9.3

Setup database

# Enter postgresql shell:
psql postgres

# Setup database
CREATE DATABASE app;

# Set user password
ALTER USER postgres WITH PASSWORD '123';

Virtual env

# Enter postgresql shell:
psql postgres

# Setup database
CREATE DATABASE app;

# Set user password
ALTER USER postgres WITH PASSWORD '123';

Virtual env

sudo pip install virtualenv
virtualenv env
env/bin/pip install -r requirements.txt

Fronted

# Install dependencies
sh frontend/install.sh

# Complie coffescript to javascript in application
coffee --compile --output frontend/scripts/lib/ frontend/scripts/src/

Run

env/bin/python wsgi.py

Now the application should be available at

http://localhost:5000

About

Flask base app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published