Skip to content

beeracademy/web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Academy Web Server

Build, Test & Deploy

Frontend and api server for Academy.

Installation

Install Python 3.9 and create a virtual environment:

python -mvenv ~/.cache/venvs/academy-web

Inside the virtual enviroment install pip-tools and install our dependencies with pip-sync:

pip install pip-tools
pip-sync requirements.txt dev-requirements.txt

Install pre-commit hook to ensure files are formatted correctly:

pre-commit install

Then apply the database migrations:

./manage.py migrate

Running

To start the server locally run:

./manage.py runserver

Compiling Svelte components

Some views uses Svelte components, which needs to be compiled. To do this, run the following:

cd svelte
./build_components

Generating Facebook access token