Calculator implementation from scratch
Prerequites: have python and node.js installed
$ pipenv install --dev
$ pipenv shell
alternatively using python3 virtualenv
$ virtualenv -p python3 venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ sudo npm install -g @vue/cli
$ cd frontend
$ npm install jquery
$ cd backend
$ python manage.py migrate
$ python manage.py runserver
$ cd frontend
$ npm install
$ npm run serve
Vue server will be listening on http://localhost:8080/
Tests are located in backend/calculator/tests.py
.
When making changes to the function implementations, make sure to run the tests.
With the activated python environment:
$ cd backend
$ ./manage.py test