Giter Site home page Giter Site logo

escape-challenge-3's Introduction

Express escapes ๐Ÿ† Challenge 3

Copy this code on the README.md of the repository you are working on, and complete the last and final challenge:


Challenge 3: enigmas, enigmas, enigmas. ๐Ÿฉป

Our app already has users and teams. The last part is actually the part we have been working on all day: creating the enigmas.

Create a new model called Enigma. Every Enigma will have the following fields:

  • Title (string)
  • Number (number)
  • Description (string). What does the person have to do to solve it?
  • Image (string). It will store an image URL from the Internet (pick any random images that you want). This field is optional.
  • Team (id referencing the model Team). This will be a reference to the team that tried to solve the enigma.
  • Solved (boolean). You will have to read about input type checkbox to solve this one. This kind of input has a property checked: when this happens, we should store the boolean true in the document and that enigma will be considered solved.

Create all the views and routes needed in order to:

  • Create Enigmas. All the teams from the database should be placed in a select. You should be able to choose only one team per enigma.
  • List all the enigmas. A list of titles as anchors. In the view, the enigmas should be visually separated by solved and not solved. Even though you solved them all, leave some unsolved enigmas in the database to test this feature.
  • Also, remember how we had a route /enigma that was protected to only logged-in users? EVERYTHING related to enigmas should be protected not seen by users unless they are logged in.
  • See the enigma's detail with the name of the team that tried to solve it.
  • Edit enigmas.
  • Delete enigmas.

Final touches ๐Ÿ’…๐Ÿฝ

Remember that, for the last evaluation, your app will be judged based on:

  • Navigation
  • App structure
  • Code quality
  • Number and naming of the commits
  • Style (oh yes you thought we forgot about that?)

When you are ready to submit, feel free to present your work to the judges ๐Ÿ˜ˆ

...Happy coding ;)

escape-challenge-3's People

Contributors

alebausa avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

danignz

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.