mirror of
https://github.com/AdaCore/learn.git
synced 2026-02-12 13:00:42 -08:00
contact_form
learn.adacore.com
Sources for AdaCore's learn.adacore.com website
Requirements
This project requires Vagrant and VirtualBox
Getting started
To setup for development run:
$ vagrant up
This will spin up two vms:
web: Is the the build system for the frontend web content. This includes the webpack build system and sphinx build.
server: Is the backend server with the widget API.
To build and start the development server for the frontend, run:
$ vagrant ssh web
# The following commands will be run inside the vm
$ source /vagrant/venv/bin/activate
$ cd /vagrant/frontend
$ yarn run dev
This will run webpack on the typescript and scss, then sphinx for the rst
using make local which will point the widgets at 127.0.0.1:8000
You can then point your browser on your host to 127.0.0.1:8080 to see the learn website being served from vagrant.
To build and start the development server for the backend, run:
$ vagrant ssh server
# The following commands will be run inside the vm
$ cd /vagrant
$ source venv/bin/activate
$ flask run --host=0.0.0.0
# Open another terminal window and run
$ vagrant ssh server
# The following commands will be run inside the vm
$ cd /vagrant
$ source venv/bin/activate
$ celery worker -A celery_worker.celery -E --loglevel=DEBUG
Languages
Ada
94.3%
Python
2.7%
TypeScript
1.9%
SCSS
0.3%
Makefile
0.3%
Other
0.4%