GithubHelp home page GithubHelp logo

ideas-and-voting's Introduction

RSVP Form - Full Stack

Build a simple full-stack RSVP form to allow users to respond to their invitation to _The Party.

( _The Party is private.)

Requirements:

Complete ALL Bare Minimums before moving forward to the Advanced Content.

Bare Minimum Requirements

Client:
  • Create a form with React that:
    • Takes in the following input:
      • First Name
      • Last Name
      • Email Address
      • Number of Guests
    • Requires all input fields to have a value before a submission can be made.
    • Performs input validation on the email address. (Email must be of form local@domain.)
    • Upon submission, sends the RSVP data to your Express server.
Server:
  • Create an endpoint called /rsvps in your Express server with a request handler that:
    • Invokes a database controller function that updates or creates a new document in your MongoDB collection, rsvps.
Database:
  • Implement a database controller function that will update an existing rsvp record if a matching one exists or create one if it does not, in the file /database/controllers/rsvp.js.

Advanced Content

  • Add a RSVP list view that shows the names of the people attending
  • Refactor your request handler so that it:
    • Responds to the client with the modified document, rather than the original
    • Responds with appropriate status codes for all situations. These include:
      • Internal Server Error - Something went wrong.
      • No record was found, so one was created.
      • A record was found, so it was updated.
  • Once the form is submitted and a response is returned, render an approriate confirmation view. Two are provided for you at the following paths:
    • /client/src/components/InsertConfirmation.jsx
    • /client/src/components/UpdateConfirmation.jsx

Available Resources:

ideas-and-voting's People

Contributors

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