The Bidnamic API is a RESTful API that retrieves the Top 10 Search Terms by ROAS for a campaign structure_value
. The HTML template displays the Top 10 Search Terms by ROAS by Nike's structure_value
A valid token is required to access the endpoint. Login as a Django super user.
- Python 3.8 or higher
- PostgreSQL 10.1 or higher
Clone the repository using:
git clone https://github.com/AugustineEbiem/bidnamic-fullstack-challenge.git
Once cloned, you can open the project folder:
cd bidnamic-fullstack-challenge/bidnamic-task
To get this project up and running it is advised you create a virtual environment.
In a terminal (mac/linux) or windows terminal, run the following command
python3 -m venv env
That will create a new folder env
in your project directory. Next activate it with this command on mac/linux:
source env/bin/activate
env\Scripts\activate
on windows
Then install the project dependencies with
pip install -r requirements.txt
Now you can run the project with this command
python manage.py runserver
The API endpoints:
http://localhost:8000/api/v1/structure_value/nike/1578411800/
http://localhost:8000/api/v1/structure_value/adidas/1578629887/
http://localhost:8000/api/v1/structure_value/nike/1578411797/
http://localhost:8000/api/v1/structure_value/puma/1578630235/
check server endpoint:
http://localhost:8000/api/v1/checkserver
Home page:
http://localhost:8000
Sample Login page:
http://localhost:8000/login/