Meant to be a set of base code for CollabLab research assistants to use for developing web apps. Please fork this app and update as needed. If you don't know how to update something from the original repository, follow these instructions to add an "upstream" link to this repository and these instructions to fetch from this repository.
You will need to have the following installed in order to use this:
- Python
If python and pip are installed, you should be able to simply type the following command
sudo pip install flask
This repo is divided up into a few different apps that are each boiler plates for different kinds of projects. These projects are find in the various "app1","app2",... folders.
This is app is here just to show the general idea behind flask and to use as a quick way to serve content locally on your computer. None of this is necessary if you have a webserver like apache or nginx running on your computer, but those can take some time and expertise to install and setup.
- Put all the static content into /static/css, /static/js and /static/static_html folder
- run the flask server by typing
python run.py
from the /app directory - The flask app uses the IP address 127.0.0.1:5000 by default, so type that address into your browser and you should see your page.
Pro Tip : You may need to type "http://" before the IP address. Some browsers will not know that your intention is to make an http request for a webpage"
This is app is here to show how you can integrate flask with a database running on your computer. SQLite is good for proof of concept, but for live websites with a fair amount of data to track you should be using either PostgreSQL or MongoDB.
implementation details to come