Skip to content

weibolu-rm/ETERNITY

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ETERNITY

Calculator implementation from scratch

poster

How to run project

Prerequites: have python and node.js installed

Set up python's virtual environment

$ pipenv install --dev 
$ pipenv shell

alternatively using python3 virtualenv

$ virtualenv -p python3 venv
$ source venv/bin/activate

$ pip install -r requirements.txt

Set up vue cli

$ sudo npm install -g @vue/cli

Install jQuery

$ cd frontend
$ npm install jquery

Run backend

$ cd backend
$ python manage.py migrate
$ python manage.py runserver

Run frontend

$ cd frontend
$ npm install
$ npm run serve

Vue server will be listening on http://localhost:8080/

How to run unit tests

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