Skip to content

marteinn/Madeinstockholm.se---Website

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 

Code Climate

MadeInStockholm.se

This is the madeinstockholm.se website based on AtomicPress.

Requirements

  • Python 2.7

Getting started

  1. Install requirements

    pip install -r src/requirements/local.txt

  2. Install frontend requirements

    cd frontend
    npm install
    npm install gulp
    gulp
    
  3. Create database

    python mange.py create_db

  4. (Optional) Add sample data

    python manage.py prefill fill

  5. Start server

    python manage.py runserver

  6. Open your http://127.0.0.1:5000/ in your browser

  7. Done!

Usage

  • 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_dev
  • make run
  • make sync

Git hooks

Bump version

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

Check pep8 pre-commit

chmod +x $PWD/git-hooks/pep8-pre-commit.sh
ln -nfs $PWD/git-hooks/pep8-pre-commit.sh .git/hooks/pre-commit

Contributing

Want to contribute? Awesome. Just send a pull request.

About

This is the madeinstockholm.se website based on AtomicPress.

Resources

Stars

Watchers

Forks

Packages

No packages published