- Summary of the Project
- Technologies Used
- How to Use the Project
- Features
- Prerequisites
- Setup and Local Development
- Scripts
- Backend
This project, "NewNewNews", is a frontend user interface for the related backend API. It was developed as part of the Northcoders software development bootcamp.
- Live Frontend: NewNewNews
- Live Backend: Backend API
- ReactJS (
react
,react-dom
) for building the user interface. - Axios (
axios
) for making HTTP requests to the backend. - React Router (
react-router-dom
) for navigation within the app. - Vite (
vite
) as the build tool and development server. - ESLint (
eslint
) for code linting.
Explore the app using the navigation buttons at the top. Sort and order article lists, view detailed articles, comment, and vote on articles. Users can delete their own comments.
- Home: Displays all articles, sortable by date, comments, or votes.
- Articles: View articles, vote, comment, and delete comments.
- Topics: Shows articles sorted by topics.
- Errors: Handles bad routes and API errors.
- Node.js version 16.0.0 or higher (Project developed with Node.js 18.7.0).
To check your Node version:
node --version
- Clone the Repository:
git clone https://github.com/aislingkelly/nc-news
- Install Dependencies:
npm install
- Run Locally:
npm run dev
npm run dev
: Starts the Vite development server.npm run build
: Builds the app for production.npm run lint
: Lints the codebase for potential errors.npm run preview
: Previews the built app locally.
Data sourced from the NC news project backend.
- Live Backend: Backend API
- GitHub Repo: Backend Repository