Author of the modification: shakandrew
Application has been made using BioWeb framefork, made by dr. R. Nowak.
Simple application to check numbers for being prime.
App uses Python3 / C++ / JavaScript:
- Django 2.0.1
- Boost 1.66
- AngularJS 1.6.7
First of all you need installed python3.
- Linux:
- Also install : lighttpd, boost, boost-libs, virtualenv, pip.
- In the project forder:
```bash
virtualenv -p python3 venv
```
- In the same folder do:
```bash
source venv/bin/activate
pip install -r requirements.txt
```
- To build the project run
scons
* It's possible, that there mistakes will appear. Please check file `./primeness/SConscript`. Maybe you need to change `LIBPATH` and `CPPPATH`. It relates on your python version.
- Windows
For Windows it's good to download example from frameforks page and look for OPTIONAL_ENV_SETUP
(Common instruction for BioWeb framefork).
Open build_web/primeness
run python
:
import primeness
#Add argument (our number) as string
print(primeness.checkForPrime("10"))
To run the serwer, run:
python build_web/manage.py runserver
Or
python build_web/manage.py runserver WEB_CLIENT_HOST:WEB_CLIENT_PORT
For example
python build_web/manage.py runserver 127.0.0.1:8000
(Maybe using Linux you will need sudo)
Open your lovest web-browser, Chromium for example and type into address line:
WEB_CLIENT_HOST:WEB_CLIENT_PORT
(in out example: 127.0.0.1:8000
)
You can change files in build_web and run serwer. But if you are changing sources in ./primeness/
or ./web/
don't forget to run scons.