Skip to content

raptorf1/Glocal_news-API

 
 

Repository files navigation

Coverage Status Build Status

Project Title

GLOCAL News

News for everyone, by anyone, from everywhere!

This time around, we decided to create an online newspaper with news from around the world, where everyone can be a potential journalist and/or editor and get paid by it! We are using a peer review approach, giving a more democratic scent to the current field of online journalism.

This was a three weeks project (May 20th - June 9th).

User Stories

Check the whole design sprint and user story history of the project in this Pivotal Tracker board.

Deployment & GitHub

This application consists of a back-end API and a front-end Client.

The GitHub repository for the API is here and the one for the Client is here.

The API is deployed using Heroku on this address.

The client, which is where everything happens, is deployed via Netlify here. If you do not wish to sign up, you can use the following test credentials:

Tests, Test Coverage & CI

API

The API part of the application was request and unit tested using Rspec.

To be able to run the tests, run bundle install in your terminal as soon as you fork this repository.

You must also have the database migrations in place, in order for everything to work properly. So in your terminal run rails db:migrate. In case this command produces an error, you can run rails db:drop db:setup.

After that, use bundle exec rspec to run all tests avoiding any conflicts with the gems of this repo and your locally installed gems.

Unit and request tests can be found in the spec/models and spec/requests folders respectively.

Coveralls was used to measure the API's test coverage.

Semaphore CI was used for continious integration.

CLIENT

The Client part of the application was acceptance tested using Cypress and component tested using Enzyme.

To be able to run the tests, run npm install in your terminal as soon as you fork this repository.

After that, use npm run cy:open to launch a local server instance of the application and run all acceptance tests of Cypress. To run the component tests you can use npm run test.

Acceptance and component tests can be found in the cypress/integration and src/__tests__ folders respectively.

Built With

Authors

License

This project is licensed under the MIT license.

Acknowledgments

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 99.6%
  • HTML 0.4%