You can run the application in a container or in your local environment.
- Install
podman
, if it's not already installed - Run the container
podman run -dp 8080:8080 docker.io/0xdeadcat/colors-api:v1
- In your browser, navigate to
localhost:8080
- Install
podman
, if it's not already installed - Clone the repository:
git clone https://github.com/0xDEADCAT/colors-api.git
- Navigate inside the cloned repository:
cd colors-api
- Using the command
podman build -t colors-api .
build the container - Run the container
podman run -dp 8080:8080 colors-api
- In your browser, navigate to
localhost:8080
- Install
python3.9
, if it's not already installed - Install pipenv using pip
pip install pipenv
- Clone the repository:
git clone https://github.com/0xDEADCAT/colors-api.git
- Navigate inside the cloned repository:
cd colors-api
- Run
pipenv install
- Once all dependencies are installed, run
pipenv shell
- Run the database setup script
python database_setup.py
- Start the application
uwsgi --ini uwsgi.ini
- In your browser, navigate to
localhost:8080
The documentation of the REST API is available inside the Swagger UI provided by the application.
Once the application is running, simply navigate to localhost:8080
using your browser to view it.