Skip to content

nicosaki/ScrabbleExpress

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exercise: Express Scrabble

The goal of this exercise is to practice with RESTful routing as expressed by a Node Express application. We will utilize our Scrabble code from the previous project to create a website that can score Scrabble words for us.

Requirements

  • Implement a home page (GET /) that has at least one (preferably cute) image and a navigation that links to the static GET routes below.
  • Implement a route file and controller file for a ScrabbleController that responds to these routes:
    • GET /scrabble/chart: shows the letter score chart
    • GET /scrabble/score: shows a form allowing a user to submit a word for scoring
    • POST /scrabble/score: processes the user input and renders either
      • a page showing the user submitted word and it's score or
      • in the case of something it can't score, an error page with an "unscorable word" message
  • GET /scrabble/score/:name: A dynamic route that scores whatever word is passed into the :name portion of the dynamic route. Will render either
    • a page showing the user submitted word and it's score or
    • in the case of something it can't score, an error page with an "unscorable word" message

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 81.3%
  • HTML 17.4%
  • CSS 1.3%