-
Clone this repo
-
Install all the necessary packages (best done inside of a virtual environment)
pip install -r requirements.txt
In case you get an error 'failed building wheel for pillow' or smth similar and you're on Debian or Ubuntu you probably need to install Python’s development libraries for Pillow via
sudo apt-get install python-dev python-setuptools
and then install Pillow again with
pip install pillow
More info: https://pillow.readthedocs.org/en/3.0.0/installation.html.
-
Copy the file config.py.example and rename it to config.py in the instance folder. This file is for dev configuration and should be kept out of version control as it contains some sensitive information (e.g. SECRET_KEY). More on using instance folders: http://flask.pocoo.org/docs/0.10/config/#instance-folders. Also here you can choose which databse to use in developemnt (default is SQLite).
-
Run the app
python runserver.py
-
Initialize the db (the server must still be running, so open a new terminal window first)
python manage.py init_db
(this will create a 'posts' db with one sample post and a user 'Admin' with email 'me@test.com' and password '111111')
-
Install necessary JavaScript packages (you'd also separately install gulp globally)
npm install
-
Bundle all the necessary files (this will create a 'dist' directory in the 'static' folder)
gulp build
-
Start watching JS files for changes to automatically re-bundle them (note that this only watches your custom JS files, if you're adding an Angular module or other third-party libs you need to manually add the path to it to 'bundle-vendor.config.js' and call 'gulp bundle-vendor' to update the vendor.js file).
gulp watch
-
The site should be ready and running at http://localhost:5000/
-
Notifications
You must be signed in to change notification settings - Fork 0
A blog app made with Angular and Flask
License
Clarity-89/blog
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A blog app made with Angular and Flask
Resources
License
Stars
Watchers
Forks
Releases
No releases published