With this you can keep different configuration environments for differents projects.
> pip install virtualenv
> cd mediapro
> virtualenv mediapro --no-site-packages
> source mediapro/bin/activate
> deactivate # for when your are done with the project
> pip install -r requirements.txt
Install mongoDB and start it on default port.
More info: https://docs.mongodb.com/manual/installation/
> sudo mongod # start the db
Check that the db is running by:
> mongo
You should see something like:
MongoDB shell version: 3.2.5
connecting to: test
Server has startup warnings:
2016-07-19T02:55:18.604+0200 I CONTROL [initandlisten]
2016-07-19T02:55:18.604+0200 I CONTROL [initandlisten] ** WARNING: Insecure configuration, access control is not enabled and no --bind_ip has been specified.
2016-07-19T02:55:18.604+0200 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted,
2016-07-19T02:55:18.604+0200 I CONTROL [initandlisten] ** and the server listens on all available network interfaces.
2016-07-19T02:55:18.604+0200 I CONTROL [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended.
2016-07-19T02:55:18.604+0200 I CONTROL [initandlisten]
2016-07-19T02:55:18.604+0200 I CONTROL [initandlisten]
2016-07-19T02:55:18.604+0200 I CONTROL [initandlisten] ** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000
>
> python start.py
For manual testing install Postman:
https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop
Import folder postman
For API documentation see View Docs under the collection MediaProTasks.
- Fields related to dates should be timestamps (this is, milliseconds since epoch)
- GET /api/tasks has pagination (ex. ?page=1&rows=5)