FE-NC-News is the front-end client for Northcoders News API (see the backend project on my GitHub).
This React application interacts with the RESTful Northcoders News API to fetch, display, and manage news articles and comments dynamically. Developed with modern JavaScript tools and libraries, this client provides an engaging and accessible user interface for both public viewers and registered users. It makes use of paradigms such as optimistic rendering and responsive design to prodive a consistent and postive experience.
The deployed version can be seen here. NOTE: Due to free hosting, a wait of around a minute will be necessary for the backend API to spin up and provide data.
- Public users can view news articles and comments.
- Registered users can post, edit, and delete their articles and comments.
- Responsive design ensures a seamless experience across all devices.
- Node.js: v14.0.0 or above (developed on v21.6.1).
- Clone the repository from GitHub.
- Run
npm install
to install all dependencies listed inpackage.json
. - Run
npm start
to launch the application locally. - The app will be available at
localhost:5173
by default, accessible via web browser.
- There is currently one 'user' option to login in as to unlock all features.
- Ensure Node.js is installed and properly set up.
- Always add sensitive files to
.gitignore
- React - A JavaScript library for building user interfaces.
- Vite - Frontend build tool that significantly improves the development experience.
- Axios - Promise based HTTP client for the browser and node.js.
- React Router - JavaScript framework to handle client and server-side routing in React apps.
- Jest - JavaScript Testing.
- ESLint - JavaScript linter.
- Babel - JavaScript compiler used to convert ECMAScript 2015+ code into a backwards compatible version of JavaScript.
npm test
: Runs the Jest test suite.npm run dev
: Starts the development server using Vite.npm run lint
: Lints the codebase for potential errors.npm run build
: Creates a production build of the app for deployment.npm run preview
: Serves a production build locally for testing, USE AFTER BUILD SCRIPT.
The project is part of a portfolio developed during a Digital Skills Bootcamp in Software Engineering provided by Northcoders. All feedback welcome!