Skip to content

A portfolio project to showcase frontend development

Notifications You must be signed in to change notification settings

stevelw/fe-nc-news

Repository files navigation

Northcoders News - Frontend

An example frontend for a social news site.

A 'production' version is hosted at nc-news2024.netlify.app.

When the backend server is not in use, it is spun down, so you may see loading messages. You will need to refresh the browser to get the first load to succeed in that instance, which can take up to a minute. This only affects the first load and only if the example server has been spun down.

You can check the health of the backend server by going to nc-news-gjzo.onrender.com/api in a web browser and checking if a JSON object is rendered. Likewise, you can check the health of the backend database server by going to nc-news-gjzo.onrender.com/api/articles.

I built this as a portfolio project while on the Northcoders JavaScript full-stack course. All code is my own.

  • The runtime environment is browser-based
  • The framework is React
  • Network calls use Axios
  • Routing uses React Router DOM
  • Building uses Vite/CodeKit

How to run and test locally

Requires Node.js v22.3.0+

  1. Clone the repo from github.com/stevelw/fe-nc-news.git

    git clone https://github.com/stevelw/fe-nc-news.git

  2. Install the development dependencies

    cd fe-nc-news

    npm install -d

  3. Launch the local server

    npm run dev

Releases

No releases published

Packages

No packages published