Skip to content

fac25/week1-server-sumithra-joe-yassien-suraj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Week 1: Server Project Microblogging

By: Sumithra, Joe, Yassien, Suraj

On our microblogging website allows the user to make comments and read the comments of other users.

You can find our site hosted on Heroku

Setup

Make sure you have Git and Node (v18) installed.

  1. Clone this repo and cd into the directory
  2. Run npm install to install all the dependencies
  3. Run npm run dev to start the server.

This uses the nodemon library to auto-restart the server when you save changes.

Test

Our test folder contains three tests.

  • Test 1 Tests for missing routes.
  • Test 2 Tests for user messages displayed correctly
  • Test 3 Tests for home route responds to post requests

To run:

npm run test:1

npm run test:2

npm run test:3

Users Stories

  • As an opinionated person, I want to: post my thoughts so others can read them

  • As a bored person, I want to: read what other people have posted

Stretch

  • As an impulsive person, I want to: delete my posts so no one can see them anymore

Acceptance Criteria

  • Deployed to Heroku
  • A page with a form to submit posts, and a page showing all posts
  • No .html files (all HTML responses should be created dynamically within Node)
  • No client-side JavaScript (all logic should happen on the server)
  • All static assets served correctly (CSS, favicon etc)
  • Tests for each server route
  • A responsive, mobile-first design
  • Ensure your app is accessible to as many different users as possible

Snapshot

image

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •