This repository serves as the frontend for the NC News API. Users are able to view articles & refining their searches by topics, votes, comment numbers, date, etc. Comments can also be added to selected articles.
This is a work in progress, CSS & layout features require much refining. User login functionality needs to be implemented with the abilitiy to post new articles.
The default application is hosted at the below link
https://main--alicwncnews.netlify.app/
The frontend relies on the the NC News API found at the below link
https://github.com/AliCW/AliCW-be-NC-news
-
Clone the repository by entering the below in the command shell.
git clone https://github.com/AliCW/alicw-fe-nc-news.git
-
Navigate to the cloned repository with the following command
cd alicw-fe-nc-news/
-
Enter the below command to install the required packages for the program to run.
npm install
There are numerous tests for the utility functions setup in the below folder, these use jest & jest-sorted to resolve.
utilities/__tests__/
To run the tests themselves, enter the below command in the root directory
npm test