This is the madeinstockholm.se website based on AtomicPress.
- Python 2.7
-
Install requirements
pip install -r src/requirements/local.txt -
Install frontend requirements
cd frontend npm install npm install gulp gulp -
Create database
python mange.py create_db -
(Optional) Add sample data
python manage.py prefill fill -
Start server
python manage.py runserver -
Open your
http://127.0.0.1:5000/in your browser -
Done!
-
Run application
python manage.py runserver -
Run application (with admin and debug enabled)
python manage.py runserver -a -d -
Generate static assets
python manage.py exporter export -
Upload to S3
python manage.py s3 sync
This project also ships with a makefile that contains a couple of helper commands:
make run_devmake runmake sync
This hook will automatically bump the application version when using git flow release ...
chmod +x $PWD/git-hooks/bump-version.sh
ln -nfs $PWD/git-hooks/bump-version.sh .git/hooks/post-flow-release-start
ln -nfs $PWD/git-hooks/bump-version.sh .git/hooks/post-flow-hotfix-start
chmod +x $PWD/git-hooks/pep8-pre-commit.sh
ln -nfs $PWD/git-hooks/pep8-pre-commit.sh .git/hooks/pre-commit
Want to contribute? Awesome. Just send a pull request.