Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 1 KB

README.md

File metadata and controls

43 lines (33 loc) · 1 KB

RxJs Tutorial

Uses RxJs to make HTTP calls inside an React application using hooks.

Environment

Any stable version of Node JS.

Coding Standard

ESLint and Prettier are used for code.

Getting Started With the Express Backend (/api)

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.

Running the Express Application

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.

Getting Started with the React Frontend (/web)

The React frontend is a based on create-react-app.

Running the React Application

cd web/
yarn install
yarn start