Hi! I'm working on chunking large CSV file uploads and implementing drag and drop functionality. I am using data sample from hotel building energy consumption.
- ReactJs
- Material UI
- Django
- PostgreSQL
- Celery
- Docker
- Nginx
Setup project manually by running the following commands:
Set up backend:
-
Install all backend project dependencies
pip install -r requirements.txt
-
Run migrations
python manage.py makemigrations
python manage.py migrate
-
Start server
python manage.py runserver
-
Set up frontend:
-
Change directory to /app directory
cd frontend/app/
-
Run npm install to install all frontend project dependencies
npm i
-
run frontend development client
npm start
NB: or you could just run one command with docker 😎
Side note, I am still working on a bug from the docker deployment side -- uploading large files is still an issue i am trying to fix.
-
Builds and starts dev server container detached
docker-compose up --build -d
-
Go to url
http://localhost
make sure to visit frontend/app/src/settings/index.js to make the necessary adjustment to run without the port provision from browser