Uses RxJs to make HTTP calls inside an React application using hooks.
Any stable version of Node JS.
ESLint and Prettier are used for code.
The application runs by default on localhost:4000
and has the following
endpoints:
http://localhost:4000/posts
- returns a JSON-encoded array of blog posts.http://localhost:4000/posts/:id
- returns a specific POST by id.
cd api/
yarn install
yarn start
You can verify the API is working by visiting http://localhost:4000/posts in your browser or another HTTP client.
The React frontend is a based on create-react-app.
cd web/
yarn install
yarn start