Giter Club home page Giter Club logo

nc-news-frontend's Introduction

NC News

React app for a website serving articles and comments.

Table of Contents

Getting Started

These instructions will get you a copy of the project running on your local machine. This is for testing and development only; for production see deployment

Installation

Clone this repository:

git clone https://github.com/Jakub-L/nc-news-frontend.git

Install the package dependencies:

npm install

Start the development server:

npm start

The website can now be reached at localhost on port 3000.

Testing

Unit Testing

Unit testing is done via React's in-built Jest testing suite. In order to run the automated unit tests for utility functions, run the following command:

npm test

Integration Testing

Integration and end-to-end testing is managed via Cypress. In order to run the tests, run the following command:

npm run cy:open

This will open Cypress and allow for running of the tests.

Deployment

The app is hosted on Netlify.

API

The app uses a separate back-end to serve its data.

The repository is hosted on GitHub, and the live version is hosted on Heroku

Available Scripts

  • npm start - initialise the local development server,
  • npm run build - build the app into the build folder,
  • npm test - run the Jest test suite for unit testing,
  • npm eject - remove single-build dependency from project,
  • npm run cy:open - open cypress for end-to-end testing

Built With

Authors

nc-news-frontend's People

Contributors

jakub-l avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.