Skip to content

VikSil/NC-news-frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NC News

This repository contains a website that was developed during Northcoders Software Engineering Bootcamp, front-end project week. It constitutes a news website with articles on various topics, where users can view articles by category, up-vote and down-vote articles by other users, comment on articles and delete their own comments.

NC News website demo GIF

Video demo of the website can be viewed here.

The backend repo can be found here.

Instructions below will explain how to run this website locally.

Prerequisites

Local version of the back-end is not required for the front-end website to run locally.

Prerequisites for running this website locally are:

  • Node.js with npm (version 20.8.0 or higher)
  • Git

To make sure that all prerequisites are installed, run the following commands in the terminal:

    node --version
    npm --version
    git --version

If all return sensible looking version numbers, proceed with the setup. Otherwise, look into these instructions for setting up Node and npm, and these instructions for setting up Git.

Setup and installation

To set up the website and run it on your local machine:

  1. Create a directory where the project will be contained and cd your terminal into that directory.
  2. Clone this repository onto your local machine by running the following command:
    git clone https://github.com/VikSil/NC-news-frontend.git
  1. Run command: cd NC* to change into the repo directory.
  2. Run the following command to install dependencies (this will take several minutes to complete):
   npm install

The above command will result in a message about the number of packages that have been added and audited. If the message contains information about any vulnerabilities, run the following command:

    npm audit fix

Starting the website

Run the following command to start the website:

    npm run dev

The above command should output the following message:

Server running message

You should now be able to view the website by inputting the Local address into your browser.

Documentation

Wireframes

The wireframes below illustrate the layout of the website.

Articles List wireframe

Article wireframe

User page wireframe

Loading and Error page wireframes

Component Tree Diagram

The component diagram below illustrates the component hierarchy, along with the states and properies used within the website.

Component Tree Diagram

Disclaimer

The data that is retrieved from the back-end for the use of this website was provided as part of the course material by Northcoders. The repo owner has to the best of their ability removed and replaced any potentially harmful content. Any remaining data is not necessarily an accurate reflection of the repo owner's beliefs. The use of the back-end data does not constitute endorsement.