This repository contains a full-stack developer test task focused on building a simple Audiobook Voting Dashboard.
-
Navigate to the backend directory:
cd backend
-
Install Python requirements:
pip install -r requirements.txt
-
Start the Flask development server:
python run.py
The backend will be served at
http://localhost:5000
.
-
Navigate to the frontend directory:
cd frontend
-
Install npm requirements:
npm install
-
Set a custom API URL (optional): If you need to set a custom API URL other than
http://localhost:5000
, you can do so by setting theNEXT_PUBLIC_API_URL
environment variable:export NEXT_PUBLIC_API_URL=http://your-custom-api-url
-
Start the Next.js server:
npm run dev
The frontend will be served at
http://localhost:3000
.