The ubuntu.com codebase is a Flask app, which builds on our own flask-base, templatefinder, blog and search packages.
We use Yarn for building static files like CSS through package.json
scripts.
- To run the project simply, you will need to install
dotrun
, by following the installation instructions - docker: Docker is used to run the project. You can install it by following the installation instructions
- docker-compose: Docker compose is used to run the Postgres database and the SWIFT server (files server), you can install it by following the installation instructions
To start the database and the SWIFT server, run:
docker-compose up -d
To start the project, run:
dotrun
That's it! The project should now be running at http://localhost:8017/manager.
To generate a new API token, run:
dotrun exec flask token create test
To list all the API tokens, run:
dotrun exec flask token list