Giter Site home page Giter Site logo

rand-sim-1's Introduction

Running/Environment

  • Make sure you fork this repository to your own Github, then clone it to your computer
  • From the project root directory, run npm install, then run node server.js
  • Next, go to http://localhost:3001/ in your browser
  • Note: if you make changes in api.js you must "exit the server" by pressing ctrl + c in the terminal, and then run node server.js again to "start the server" again

Debugging

When you do a console.log inside of api.js, you won't see the log in the browser. You'll see it in the terminal where you ran node server.js, so make sure to look there as well for errors/logs.

Requirements (bug fixes)

Make it work. Should be able to:

  • Add new todo properly
  • Mark a todo as complete by clicking checkmark
  • Delete a todo by clicking trashcan

Files you should be working with:

  • index.html
  • main.js
  • api.js (inside of /server/routes)

Features

  • Allow the user to "toggle" a complete
    • Clicking the checkmark once "completes" the task, clicking it again "uncompletes" it
  • Convert to OOP!
  • Allow the user to set a "priority" for each todo
    • "HIGH" priority todos should have a background color of red, "MED" orange, and "LOW" green
  • Clicking a todo "upgrades" the priority, i.e. clicking a "LOW" priority todo will change it to "MED" priority, "MED" to "HIGH", and "HIGH" goes back to "LOW"
  • Convert to Handlebars!

rand-sim-1's People

Contributors

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