A RESTful API server for mobile resources.
To run the app, you must have the following installed:
- Docker
- Docker-compose (unnecessary for newer versions of Docker)
First, clone the app:
$ git clone https://github.com/uw-it-aca/mdot-rest.git
Navigate to the develop branch and copy the sample environment variables into your own .env
file and change variables if desired:
$ cd mdot-rest
$ git checkout develop
$ cp sample.env .env
Then, run the following command to build your docker container:
$ docker compose up --build
docker compose
may be docker-compose
on older versions of Docker.
You should see the server running when viewing http://localhost:8000/api/v1/uwresources/ (or at the port set in your .env
file with /api/v1/uwresources/
)
To rebuild the docker container from scratch, run:
$ docker compose up --build
Otherwise, just run:
$ docker compose up
To run the unit tests, simply run the following command from the repository root:
$ docker-compose run --rm app bin/python manage.py test