项目作者: tinspham209

项目描述 :
Show available Jobs from Github Jobs
高级语言: JavaScript
项目地址: git://github.com/tinspham209/github-jobs.git
创建时间: 2020-08-29T14:31:56Z
项目社区:https://github.com/tinspham209/github-jobs

开源协议:

下载


Mini Project: GitHub Jobs Application

Date: 29 - Aug - 2020

Functions

  • Display available Jobs from Github Jobs

Screenshot

Tech-Stack

  • React
  • react-bootstrap: UI
  • axios: fetch API
  • useReducer : store state
  • react-markdown : converting markdown on URL to string

API Used

https://jobs.github.com/api

Plan Of Action

  • Initial Project
  • Setup react, axios, react-bootstrap
  • create useFetchJob function to Fetch API
  • create Job component
  • create Pagination
  • create Search
  • Filter Job with full-time

After this project

I have improve my knowledge about

I have understand about

  • use useReducer hooks to store state
  • how to fix CORS error with https://cors-anywhere.herokuapp.com/[your_url]
  • use cancelToken of axios to cancel get request when you typing every character.
  • use react-bootstrap for style component without css file
  • how to create pagination with react-bootstrap
  • handle variable hasNextPage when fetchData to add Pagination nextPage
  • create search form with bootstrap
  • handle Params Change

Next Steps:

Directory Structure

  1. .
  2. ├── .gitignore
  3. ├── package.json
  4. ├── README.md
  5. ├── public
  6. └── src
  7. ├── components
  8. ├── Job
  9. ├── Pagination
  10. ├── SearchForm
  11. └── UI
  12. └── Spinner
  13. ├── hooks
  14. └── useFetchJob.js
  15. ├── App.js
  16. ├── App.css
  17. ├── index.css
  18. └── index.js

Set up

Use the cmd line to clone repo to your computer

  1. git clone [github_repo_url]

Use the cmd line to install dependencies.

  1. npm install

Run in cmd for start the dependencies server

  1. npm start