Skip to content

HassanBharu/nc-news-front-end

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  1. NorthCoder News

    This is a social news website serving as the frontend to the NC-Knews API for which the git can be found here.

   The Web application allows a user to post new articles to existing topics, with the ability to create a 
   comment on each article, vote on articles and comments, login and logout, order articles by created, comment count and votes.
  

Getting Started

Prerequisites

It is assumed that VS code (or another appropriate alternative) runs on your machine.

You also need node (at least v11.0.0) and npm (at least version 6.4.1) installed on your machine.

Installing

Get the code

Fork the project from git. Then copy the git url and in the appropriate folder on your machine:

git clone <url from git>

This will create the project on your local machine. Open the project in VS code (or alternative app).

Install dependencies

Run the following to install chai, express, nodemon, knex, mocha, pg & supertest.

npm install 

Once all required dependencies are installed, you can check the node_modules folder (which should be created now) to see if the folders for each of these libraries exists.

Running the tests

Coming soon...

Running the app

To run the app:

npm start

Tech used

Front end

Frameworks

The front-end was developed using React the styling was done via React Bootstrap combined with css. I considered other frameworks such as semantics but I preferred the styling provided by React Bootstrap.

Testing

Testing was done with Cypress. Given the limited time, not all of the test cases were incorporated and will be done at a later date.

Back end

The database holding the article info is Postgres and Express was used to build the server. Supertest, Mocha and Chai were used for testing.

Sprint management

A Readme was created in order to check off things which needed to be done

Authors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published