Giter Site home page Giter Site logo

jok-jok's Introduction

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 [email protected]

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: "[email protected]",
  },
  {}, {}, {} // 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

jok-jok's People

Contributors

heggy231 avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar Matthew Day avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.