Git Product home page Git Product logo

newscape's Introduction

Newscape

Background

Newscape is a collaboration between Natalie McLaren and Jason Lai. As we had both been learning ReactJS and Laravel in the months leading up to this project, we decided that we wanted to work together on a project combining both technologies.

About Newscape

Newscape fuses the Twitter API for Laravel with News Api to give users a personalised dashboard with their favourite news sources alongside their Twitter feed. Users can save their preferences and share their favourite news articles on Twitter.

Development

Planning

At the start of this project the group met to compile a list of features that we wanted the website to have and what would be necessary to achieve MVP.

Once we identified the key features of our application, we had to decide on the technology stack required to achieve this. Although it may have made more sense to use Vue.js (as this comes pre-packaged with Laravel), we really wanted to use this project as an opportunity to develop our knowledge of ReactJS.

Tech Stack

We also conducted a discovery process to identify any limitations or blockers of the News Api we were planning to use. Once we had done this we were able to start planning the Entity Relationship Diagram for the backend database models.

Design & Wireframing

We briefed our designer Nick Garratt on the website requirements and he mocked up some wireframes using Adobe Photoshop.

Installation

  • Clone repository
  • Set up the host 'newscape.dev' and point the root to the application's 'public' folder (e.g. using MAMP or similar)
  • Run composer install
  • Run npm install
  • Generate application key with php artisan key:gen
  • Go to https://apps.twitter.com and create the application
    • Make sure you also generate an access token via the 'Keys and Access Tokens' tab
  • Go to https://newsapi.org/ and register to get an API key.
  • Create the database in your local environment
  • Copy the .env.example file and copy paste its contents into a new .env file. Modify the following according to your Twitter/NewsApi application settings ONLY in your .env file:
    • TWITTER_CONSUMER_KEY=

    • TWITTER_CONSUMER_SECRET=

    • TWITTER_ACCESS_TOKEN=

    • TWITTER_ACCESS_TOKEN_SECRET=

    • NEWSAPI_KEY=

    • NEWSAPI_URL=

  • Run npm run watch
  • Run php artisan migrate
  • Run php artisan db:seed
  • composer dump-autoload may be required before seeding the database
  • Run php artisan save:articles to fetch articles from the News API and save into your database
Installation for development use without MAMP
  • Follow the steps above except the second point, and instead run php artisan serve at the end.

newscape's People

Contributors

laij84 avatar nats12 avatar

Stargazers

Jesús Avelar avatar  avatar  avatar Anjolaoluwa avatar jaaack benebo(JVB) avatar

Watchers

James Cloos avatar Edward Kemp avatar  avatar  avatar

Forkers

tunb lex847

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.