This is a job searching app with React and using authentication with JWTs.
Backend code is provided by Rithm School.
- Design component hierarchies is very important skills in learning React
- Creating API helper for centralizing AJAX calls
- React Component Lifecycle
- Authentication with JWTs which stored in local storage
- Hydration - to not loose data when refreshing a page
- Using parameterized queries to protect against SQL injection
App
├── Navigation
└─┬ Routes
├─┬ Companies
│ ├── CompanyCard
│ └── Search
├─┬ Company
│ └── JobCard
├── Home
├─┬ Jobs
│ │ └── JobCard
│ └── Search
├─┬ Login
│ └── Alert
├── PrivateRoute (don't worry about this for now)
└─┬ Profile
└── Alert
/
Homepage — welcome message
/companies
List all companies
/companies/apple
View details of this company
/jobs
List all jobs
/login
Login/signup form
/profile
Edit profile page
- This repo has backend part on another repo called Jobly-API-New. Clone the Jobly-API-NEW repo, install required packages, create and seed database, and start the server. (Make sure that you have postgreSQL installed)
npm install
createdb jobly
psql jobly < data.sql
nodemon server.js
- clone frontend repo from this directory, install required packages, then start the app
npm install
npm start