ullebe1 / web

Frontend and api for academy

Home Page:https://academy.beer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Frontend and api for academy

https://academy.beer

License:GNU General Public License v3.0


Languages

Language:Python 70.4%Language:HTML 16.8%Language:Svelte 8.8%Language:Shell 1.3%Language:JavaScript 1.0%Language:CSS 0.8%Language:TypeScript 0.7%Language:Dockerfile 0.2%