React-Task-Tracker
A straightforward CRUD project by leveraging React for the front-end and utilizing Json-server to create a RESTful API.
This project was built following this tutorial updated using the new react-router-dom.
React, a popular JavaScript library, served as the foundation for constructing the user interface of the application.
The project's backend was implemented using Json-server, a simple yet effective tool for generating a RESTful API based on a JSON file.
- Node 18.8.0
- VSC code
- React 18.2.0
npm run start
starts the UI on port 5000
npm run server
starts the backend on port 3000
return (
<Router>
<div className="container">
<Header
onAdd={() => setShowAddTask(!showAddTask)}
showAdd={showAddTask}
/>
<Routes>
<Route
path="/"
element={
// Specify the element prop here instead of using the render prop
<>
{showAddTask && <AddTask onAdd={addTask} />}
{tasks.length > 0 ? (
<Tasks
tasks={tasks}
onDelete={deleteTask}
onToggle={toggleReminder}
/>
) : (
"no task to show"
)}
</>
}
/>
<Route path="/about" element={<About />} />
</Routes>
<Footer />
</div>
</Router>
);
List of features
- React UI
- Json-server backend
Project is: done
Project by Traversy Media
By bermarte
Getting Started
git clone [email protected]:HackYourFutureBelgium/template-markdown.git
npm install
npm run start
npm run server