- Node.js v5.0 or latest (the environment of development is v6.2.2)
- Python 2.7 with following packages
- BeautifulSoup
- requests
- lxml
- Database (choice one on following)
- MariaDB 10.1.8 or latest (Recommend)
- MongoDB v3.2.7 or latest (for admin webController)
- redis (for admin webController session)
openssl req -x509 -out public_key.der -outform der -new -newkey rsa:4096 -keyout private_key.pem -days 3650 -nodes
openssl rsa -in private_key.pem -out public.pub -outform pem -pubout
Using pip or easy_install to install following package:
- BeautifulSoup
- requests
- lxml
In the project directory, using command line to install node packages
npm install
Configure the api by modifying the file mobileAPI/config.json
. Including:
- MariaDB database setting
- key place
Configure the webController by modifying the file
webController/config.json
. Including: - Allow domain.