Based on https://www.youtube.com/watch?v=lauywdXKEXI from CodeDrip.
Project that fetches jobs from the ItJobs API, using cron from hour to hour and persist them in a redis server. It uses a express + node API to fetch the jobs from the redis server. React Client app created using create-react-app. Using react hooks.
The basics of the basics and the advantages of an in memory database (cache).
To use Redis in windows I installed a linux subsystem. I went with ubuntu. To start:
- service redis-server start
To see data:
- redis-cli
- get itjobs
Run the cron worker:
- node worker/index
Run the client:
- yarn start
Run the api:
- node api/index
Learned the basics of using react without class components. Using functions components with react hooks. Need to learn more about react hooks in the future and how is used with redux. Since react hooks are going to be the standard, when react suspense is stable. Substituting class components.
Nothing, only a simple get request is made.