React Task Tracker is a simple project built with React.js
- Clone the repository and install dependencies:
git clone git@github.com:boolfalse/react-task-tracker.git
cd react-task-tracker
npm install
- Create a 'db.json' file with the content like this:
{
"tasks": [
{
"id": 1,
"title": "Task 1",
"date": "2022-01-01",
"is_completed": true
},
{
"id": 2,
"title": "Task 2",
"date": "2022-01-02",
"is_completed": false
},
{
"id": 3,
"title": "Task 3",
"date": "2022-01-03",
"is_completed": true
}
]
}
or just copy 'db-example.json' file to 'db.json'.
- Run the application:
# for development
npm run start
# for production
npm run build
- Open the application in the browser:
# using json-server
npm i -g serve
serve -s build -p 8000
npm run server
# or via manual command
npm i -g json-server
json-server --watch db.json --port 5000