heggy231 / jok-jok

react redux

Home Page:https://jok-jok.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JokJok

different questions

  1. questions - based on score, people by people into db - dating website people who love kpop
  • korean food, korean culture,
  • filter 2/5, 3/5 <<< rating (points)
  • pick 5 questions (drop down select)
  • filter databse matching: preference

How to start up:

  1. npm i in 2 places.
    1. under root of this project, run npm i
    2. cd into react-ui directory, run npm i
  2. npm run dev
    • from the root of the project ./jok-jok
    • Go to http://localhost:8080 to see the app running! Note: Express server is serving react statics from ./react-ui/build
  3. whenever you update code in ./react-ui/src, you need to run npm run build to see the changes reflected in the browser.

** OR **

  1. cd into ./react-ui then run npm run start (This will start the react server locally so that you can make changes to the react code.)

  2. npm run build from the root of the project ./jok-jok (This will serve up react static files to Heroku live deployed server jokjok)

// what does npm run build do?

"build": "cd react-ui/ && npm install && npm run build"
  • follow installation step:

npm install react-bootstrap@next bootstrap@5.0.2

npm install react-router-dom

extrapolate page routes into its own folders

data from faker

[
  {
    id: "724fc344-9788-49a8-9dee-8819e1e3e7e9",
    name: "Sheryl Schmitt",
    gender: 'female',
    avatar: "https://cdn.fakercloud.com/avatars/keryilmaz_128.jpg",
    email: "Juston.Goldner75@gmail.com",
  },
  {}, {}, {} // 10 folks
]
  • toggle thumbs up/down
  • Try 1- hook setActive false/true didn't work:
const [isActive, setActive] = useState(false);

const toggleClass = () => {
  setActive(!isActive);
};

<span>
  <div className="rating">
    <div
      className={isActive ? "like active" : "like"}
      onClick={toggleClass}
    >
      <i className="fa fa-thumbs-up fa-3x like" aria-hidden="true"></i>
    </div>
    <div 
      className={isActive ? "dislike active" : "dislike"}
      onClick={toggleClass}
    >
      <i
        className="fa fa-thumbs-down fa-3x like"
        aria-hidden="true"
      ></i>
    </div>
  </div>
</span>

friendly error messages page:

when user goes to /submission

  • Chatbot

npm install react-simple-chatbot --save

About

react redux

https://jok-jok.herokuapp.com/

License:MIT License


Languages

Language:JavaScript 64.2%Language:CSS 26.0%Language:HTML 9.8%