Skip to content

Pownyan/flasquelistan

 
 

Repository files navigation

flasquelistan

Setting up a development environment

If you haven't already (why not!?), install Pipenv. ✨🍰✨

Clone the repo and cd to the root folder. Run

$ pipenv sync

then activate the environment with

$ pipenv shell

Tell Flask where the app is located:

$ export FLASK_APP=app.py

Now you might want to create the database and populate it with some mock data:

$ flask initdb
$ flask populatetestdb

Create a user with admin privileges with which you can log in:

$ flask createadmin

Run the development server with helpful debug pages when exceptions occur:

$ FLASK_DEBUG=1 flask run

The server is now live on http://localhost:5000.

If you haven't already created /instance/config.py, one is generated for you with some sane defaults. The config in /instance overrides the default config and is not checked in to git. The generated config sets the database file to be created in /instance.

Testing

Pytest is used for testing, tests are located in tests/. Run the tests with

$ pytest tests/flasquelistan_tests.py

About

Implementation of Strequelistan in Flask and minimal js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 58.3%
  • HTML 29.1%
  • CSS 7.7%
  • JavaScript 4.7%
  • Shell 0.2%