In this learning project I build up a relatively uncomplicated to-do application. The frontend is created with React. State management I have implemented exclusively with React Hooks. Data fetching with the native fetch()-API. Furthermore, I used Express and Node.js to implement the backend as a REST API. MongoDB serves as database and Mongoose as ODM.
The goal is a clean, simple and modern implementation of a fullstack app making use of a REST API with Express and a React frontend based on React Hooks.
- Fork this repository and clone it with git to your computer.
- Run
npm install
in the main folder as well as in the client folder. - If MongoDB is not installed and running on your computer, you have to download, install and launch it first!
- In your terminal, run
npm run dev
in the main folder to launch the backend andnpm start
in the client folder to launch the frontend. - The to-do app should automatically be opened in your default browser.