This project consists of a Django backend and a Next.js frontend for the Blockhouse Dashboard. It's intended purpose is a financial dashboard web application.
Clone the repository:
git clone https://github.com/1leozhao/blockhouse-dashboard.git
cd blockhouse-dashboard
- Python 3.8+
- Node.js 14+
- npm 6+
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate
-
Install the required packages:
cd backend pip install Django djangorestframework django-cors-headers psycopg2-binary
-
Run migrations:
python manage.py migrate
-
Start the Django development server:
python manage.py runserver
-
Navigate to the frontend directory
cd frontend
-
Install dependencies
npm install
-
Start the development server
npm run dev
- Ensure both backend and frontend services are running.
- Access the specified port. localhost:8000
- Candlestick Data: http://localhost:8000/api/candlestick-data/
- Line Chart Data: http://localhost:8000/api/line-chart-data/
- Bar Chart Data: http://localhost:8000/api/bar-chart-data/
- Pie Chart Data: http://localhost:8000/api/pie-chart-data/
python manage.py test chart_api
-
Backend:
- Django
- Django REST Framework
- django-cors-headers
- psycopg2-binary
-
Frontend:
- React
- Next.js
- Chart.js
- TypeScript
- react-chartjs-2
-
Tools:
- pip
- npm
- Git
The Blockhouse Dashboard project represents a significant integration of modern web technologies, combining a Django backend with a Next.js frontend to create a dynamic and responsive user interface. Throughout the development process, I gained valuable experience in setting up RESTful APIs, managing state in React, and implementing responsive design principles.