Skip to content

A simplified todoist clone built with React and Django Rest Framework

Notifications You must be signed in to change notification settings

karlosos/react-django-todoist

Repository files navigation

A simplified todoist clone built with React and Django

Auto formatted with standardjs, tested with jest 🎗

Tech logos

App screenshot

What is this and who is it for 🤷‍♀️

This was my first project in React that I've built in my spare time. React app is based on tutorial. Backend was created by me without any help or tutorial. Github Actions (CI) were also done by me alone.

⚠️ Do not analyse React code as it was not written by me. This was one of the first tutorial projects I did for learning React. I made it public only for archiving reasons and because there are some additional things built over the tutorial base.

I've learnt a lot from this project. Some concepts that I've grasped:

  • React with hooks (tutorial scope)
  • Javascript fundamentals (tutorial scope)
  • Firebase (tutorial scope)
  • Javascript unit testing with jest (tutorial scope)
  • Django Rest Framework ✅
  • Unit testing Django ✅
  • Swagger documentation ✅
  • Github Actions (CI) ✅

Features

  • Adding and removing tasks
  • Tasks categories (projects)
  • Dark mode
  • Backend REST API endpoints (/api/v1/)
  • Documentation of endpoints in swagger (/documentation/)

Setting up development environment 🛠

Backend

Frontend

The page will reload if you make edits.
You will also see any lint errors in the console.

Testing 🚥

Run frontend tests with: npm test -- --coverage

HTML output will be available in ./coverage folder.

Run backend tests with: python manage.py test

Deploy 🚀

Create heroku application.

$ heroku create todo-react-drf 

Add nodejs and python buildpacks and the postgresql addon to app:

$ heroku buildpacks:add --index 1 heroku/nodejs
$ heroku buildpacks:add --index 2 heroku/python
$ heroku addons:create heroku-postgresql:hobby-dev

Set variable:

heroku config:set HEROKU=yes -a todo-react-drf

Push repository to heroku:

$ git push heroku master

About

A simplified todoist clone built with React and Django Rest Framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published