A simple ToDo-App made with React, based on RESTful API.
- After cloning the repository install dependencies with the command
npm install/yarn install - Create
.envfile in the main directory - Inside of the
.envfile add addresses to the API endpoints - Authorization endpoint
REACT_APP_API_URL_AUTH=<API_URL> - User endpoint
REACT_APP_API_URL_TODOS=<API_URL>
- All of the components are connected to the
App.jscomponent, which is rendered in theindex.js - Inside of the
App.jsReact router switches between Login and Registration form, and renders the user's content based on whether JWT token is available or not - The API calls modules are located inside of
servicefolder auth-headersend the user's JWT token stored in the localstorage to the request's headerauth.servicemanages all of the requests related to user login and registrationuser.servicemanages all of the API calls related to the given user's content- Styles has been created using SASS, and the styles file is hooked to the
App.jsfile
- Loading bar can be added between the async API calls
- Some functions can be divided into smaller/ separate clean functions
- Styles can be divided into separate modules
- Responsivness on smaller screens can be improved