#RESOURCE NODE
This resource node can save a single object and replicate the result to one more pre-defined instance
This was built using Python, Flask and Invoke.
This project requires the following:
- docker
- docker-compose
- Python 3.7
To start the project locally run the following
- Create a virtual python env
$ virtualenv -p python3.7 venv
$ source venv/bin/activate
- Setup the required python packages
$ pip install -r requirements-dev.txt -r requirements.txt
- Check that everything is working
inv test
Which will build the docker image start the docker compose and run all tests.
Path: /api/healthcheck Method: GET
Should return 200 if the service is healthy
Path: /api/resource Method: GET
Returns 200 on success and the saved object if there is one.
Path: /api/resource Method: POST Request Body: Any valid json you want
Returns 200 on success
Verify single class logic
Tests classes which interact with external components
Runs local end to end tests