Skip to content

mvatanya/Jobly-UI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jobly

This is a job searching app with React and using authentication with JWTs.

Backend code is provided by Rithm School.

Key learnings;

  • 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 Information

Component Hierarchy

  App
  ├── Navigation
  └─┬ Routes
    ├─┬ Companies
    │ ├── CompanyCard
    │ └── Search
    ├─┬ Company
    │ └── JobCard
    ├── Home
    ├─┬ Jobs
    │ │ └── JobCard
    │ └── Search
    ├─┬ Login
    │ └── Alert
    ├── PrivateRoute  (don't worry about this for now)
    └─┬ Profile
      └── Alert

Routes

    /
    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

Getting Started

  1. 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 

  1. clone frontend repo from this directory, install required packages, then start the app
  npm install
  npm start

Releases

No releases published

Packages

No packages published