These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
- Amazon Web Server: http://18.196.2.56
- API Doc by Postman: https://documenter.getpostman.com/view/3445692/api/7Lq8gUf
python2.7
- Clone this repo to your desktop:
git clone https://github.com/bounswe/bounswe2017group1.git
- Go to root directory of web service:
cd bounswe2017group1/web
- Install virtualenv:
sudo pip install virtualenv
- Create a virtual environment for this project:
virtualenv venv
- Switch to venv
- If you are using Windows (
$ venv\Scripts\activate
) - If you are using UNIX (
$ source venv/bin/activate
)
- If you are using Windows (
- Install necessary dependecies:
pip install -r requirements.txt
- Setup your own database or import database dump.
- Run database migrations:
python manage.py migrate
- Run server locally:
python manage.py runserver
- If you get success message, server’s running, visit
http://127.0.0.1:8000/
- Go to web service directory:
cd bounswe2017group1/web
- Make migrations for api app:
python manage.py makemigrations api
- Run migrate:
python manage.py migrate
- Create admin user:
python manage.py createsuperuser
- Switch to venv
- If you are using Windows (
$ venv\Scripts\activate
) - If you are using UNIX (
$ source venv/bin/activate
)
- If you are using Windows (
- Install necessary dependecies:
pip install -r requirements.txt
- Setup your own database or import database dump.
- Run database migrations:
python manage.py migrate
- Run server locally:
python manage.py runserver
- If you get success message, server’s running, visit
http://127.0.0.1:8000/
- Install Postman app
- Import api collection or use "Run in Postman" in documentation
node.js, npm
- Go to frontend project folder:
cd bounswe2017group1/web/frontend
- Install necessary dependecies:
npm install
- Run server locally:
npm start
- If you get success message, server’s running, visit
http://127.0.0.1:3000/
python2.7, mongodb
- Clone this repo to your desktop:
git clone https://github.com/bounswe/bounswe2017group1.git
- Go to annotation service folder:
cd bounswe2017group1/web/annotation_jsonld
- Install necessary dependecies:
pip install -r requirements.txt
- Start mongodb service:
mongod
- Create a new mongo database:
mongo <dbname>
- Run annotation server locally:
python server.py
- If you get success message, server’s running, visit
http://127.0.0.1:5005/
- Clone this repo to your desktop:
git clone https://github.com/bounswe/bounswe2017group1.git
- Go to root directory of web service:
cd bounswe2017group1/web
- Install virtualenv:
sudo pip install virtualenv
- Create a virtual environment for this project:
virtualenv venv
- Switch to venv
- If you are using Windows (
$ venv\Scripts\activate
) - If you are using UNIX (
$ source venv/bin/activate
)
- If you are using Windows (
- Install necessary dependecies:
pip install -r requirements.txt
- Setup your own database or import database dump.
- Run database migrations:
python manage.py migrate
- Just run the makefile:
make runserver
- You can retrieve database dump from our amazon server:
sh receiveFile.sh
- You can restore the database with your dump:
sh sendFile.sh <dump_path>