Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 1.57 KB

HACKING.md

File metadata and controls

45 lines (28 loc) · 1.57 KB

Working on the assets project

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.

Setup

  1. To run the project simply, you will need to install dotrun, by following the installation instructions
  2. docker: Docker is used to run the project. You can install it by following the installation instructions
  3. 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

Running the project

Starting the database and the SWIFT server

To start the database and the SWIFT server, run:

docker-compose up -d

Starting the project

To start the project, run:

dotrun

That's it! The project should now be running at http://localhost:8017/manager.

Generating API tokens

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