- Website for www.foundedinamerica.com.
- Created by Daniel Patz.
- Credit goes to Cloudients for initial code base.
- Shows the first page with the list of startups.
- Shows an about page for the origin country of the startups.
- Has a backoffice to ease the management of the database.
- Register new companies with a Typeform form
- Flask: web microframework for Python based on Werkzeug and Jinja 2.
- PostgreSQL: Relational database, used to store the company descriptions, user accounts for backoffice and key-value pairs.
- jQuery: Cross-browser compliant JavaScript code.
- Modernizr: JavaScript library that detects HTML5 and CSS3 features in the browser.
- Font Awesome: iconic font and CSS toolkit.
-
Install PostgreSQL
shell sudo apt-get install postgresql postgresql-contrib pgadmin3
-
Create a database user with full rights on it
shell sudo -u postgres createuser -D -A -P myuser sudo -u postgres createdb -O myuser mydb
-
Restart the PostgreSQL server
shell sudo /etc/init.d/postgresql restart
sudo apt-get install python-pip
-
Install virtualenv
shell sudo pip install virtualenv
-
After cloning the repo create the virtualenv
shell cd founded-in-america virtualenv venv
-
Add the following lines to venv/bin/activate file
shell export DATABASE_URL="postgresql://myuser:password@localhost/mydb" export APP_SETTINGS="config.DevelopmentConfig"
-
Activate virtualenv
shell source venv/bin/activate
-
Install all necessary packages
shell pip install -r requirements.txt
- Go to Typeform and create a typeform with the exact following questions: * "Startup name" (short text, required) * "Year founded" (number, required) * "Web address" (website, required) * "Twitter handle" (short text) * "URL to high-resolution logo (.psd, .ai or another)" (website, required) * "Contact person" (short text, required) * "Contact email address" (email, required)
Note: these fields are required for this app to work, but you can adapt them as you want
- Change config.py with the variables suitable for you and add the file to .gitignore
python run.py --setup
Go to http://localhost:5000/
This software is licensed under the MIT License. See [LICENSE.md] (https://github.com/dpatz/founded-in-usa/blob/master/LICENSE.md) for details.
Portions of this software are copyright of their own owners as described in the files containing them.