GithubHelp home page GithubHelp logo

emergency_compliment's Introduction

Emergency Compliment

Mission…

Create your own version of Emergency Compliment, using Express. When a user visits the site, they should be greeted with a WDI-themed compliment to cheer them up.

Level 1: generic compliment

When you visit the root ("/") of your app, it should display a generic greeting and a randomly chosen compliment.

Here are some sample compliments but feel free to substitute in your own:

compliments = [
  "Your instructors love you",
  "High five = ^5",
  "Amanda thinks you're wicked smart!",
  "Britney Jo is sooo proud of you! :)",
  "Sean would totally hire you.",
  "It's almost beer o'clock!"
]

HINT: Check this out on how to get a random thing from an array to use in the getRandomCompliments() function.

Level 2: personalized compliment

When you visit "/name" (ie: "/randy"), the greeting should personalize itself to the provided name. There should still be a random compliment.

Level 3: user submitted compliments

Allow a user to add to the list of compliments using a POST request. You can submit POST requests to the app using a form.

CHALLENGE:

When the user refreshes the page, the background color changes randomly. Here is an array of colors you can use if you'd like:

colors = ["#fd6c3b", "#4edacf","#65a576","#f2d83d"];

Licensing

All content is licensed under a CC­BY­NC­SA 4.0 license. All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact [email protected].

emergency_compliment's People

Contributors

britneyjo avatar seans887 avatar tanyaselvog avatar changamanda avatar

Watchers

James Cloos 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.