/md-rjs-restful-tasks

Using a basic task-tracker in React to explore the latest hooks & connecting to a RESTful API

Primary LanguageJavaScript

Giving React a REST[ful] API

This is just a basic task tracking app set up to experiment with the latest React Hooks and connecting to a RESTful API.

Most of the projects, tutorials, and such I've come across mix XHR code into their Components, but I prefer to keep my backend communication code decoupled from UI as much as possible.

Before I research the subject further, I thought it'd be fun to come up with a solution myself first--hence, this project :)


Getting Started

After installing the node dependencies, in the project directory, run:

npm run json-server

This will bring up a simple, test-able REST API server on port 5000.

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

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

This project was bootstrapped with create-react-app. Please see their docs for more info and other scripts.