Skip to content

We make brands successful by combining insightful strategy, seamless technology, persuasive design and relevant content.

Notifications You must be signed in to change notification settings

thisissoon/thisissoon.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SOON Website

We make brands successful by combining insightful strategy, seamless technology, persuasive design and relevant content.

Installing

To install create a python virtual environment and run make develop.

mkvirtualenv SOON_ --no-site-packages
workon SOON_
make develop

Running

You need to expose a SQLALCHEMY_DATABASE_URI environment variable which contains a url to your database url, for example:

postgres://root@localhost:5432/soon

This can be done in a .env file and activated using Autoenv.

You can run the application calling the following make command:

make runserver

Database Migrations

Exposing models

Database migrations are handled by alembic. To expose models to the alemvic environment you need to add the module to the BLUEPRINTS list in the config, for example:

BLUEPRINTS = [
    'soon.auth',
]

Generating migrations

If the migrations directory does not exist you will need to run:

make db-init

You can then run the migrate command:

make db-migrate

Running Migrations

To apply migrations just run the upgrade command:

make db-upgrade

Documentation Generation

Documentation can be generated by running the following make command:

make docs-make

You can also view the docs by running:

make docs-serve

This will open the docs in your systems default browser in a new tab / window.

Credis

Made wth felt tip pens by SOON_.

About

We make brands successful by combining insightful strategy, seamless technology, persuasive design and relevant content.

Resources

Stars

Watchers

Forks

Packages

No packages published