40
GitHub - dternyak/molten-boilerplate: A boilerplate for the molten framework by...
source link: https://github.com/dternyak/molten-boilerplate
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
Molten-Boilerplate
What's included?
- SQLAlchemy
- alembic
- camelCase API
- py.test (with coverage)
- invoke (CLI)
Usage
- Install requirements
virtualenv -p python3.6 venv
source venv/bin/activate
pip install -r requirements.txt
- Adjust
settings.toml
with yourDATABASE_URL
oncommon
andtest
.
For now, common
represents both production and dev.
Finally, run:
alembic upgrade head
If you make changes to your model,
you'll need to adjust migrations/env
to import any new models.
Then, run:
alembic revision -m "New thing did" --autogenerate
Dev
$ invoke start
Test
$ invoke test --cov --verbose
TODO
- Integrate pre-commit linting
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK