Coder Social home page Coder Social logo

uforu's Introduction

TrendGame

Only the trendiest. Search Google Trends for any topic of interest and see news articles corresponding to spikes in interest.

Team

Usage

Go to URL: https://trend-game.herokuapp.com/

Requirements

Development

Installing dependencies

From the root directory:

npm install

Initializing the database

Deployed Heroku Postgres DB:

  1. Provision your app with a Heroku Postgres db.
  2. Find the db's url in the config vars for your app and copy it.
  3. Paste it in setupDatabse.js as per the instructions in that file.
  4. Use node to run setupDatabase.js. If you get 3 console log statements confirming table creation, you're good to go!

Local DB:

  1. Install a local version of PostgreSQL. Recommend using brew to manage installation.
  2. Create a db in your local PostgreSQL server cluster.
  3. Follow the instructions in dbLocalConnection.DUMMY.js and populate it with the information for the db/user.
  4. Edit setupDatabase.js to point at your local DB. NOTE: The instructions and structure in this file are intended for populating deployed Heroku Postgres dbs with the schema. For a local DB, just point the connection at your local db by setting the connection in require('knex') to your local db's information. You can find this information in dbLocalConnection.js (assuming you've made it as per step 3).
  5. Use node to run setupDatabase.js. If you get 3 console log statements confirming table creation, you're good to go!

Running locally

From the root directory:

  1. In one terminal window, run > npm run dev
  2. In another terminal window, run > npm run start:watch
  3. go to http://127.0.0.1:8080
  4. Don't forget you'll need an Aylien News API key

Roadmap

View project roadmap

View app plan (includes schemas and architecture diagrams, etc)

Contributing

See CONTRIBUTING.md for contribution guidelines.

uforu's People

Contributors

arseniykotov avatar aseiden avatar bhattprateek avatar epan avatar fabbous avatar helen-tang avatar

Watchers

 avatar  avatar  avatar  avatar

uforu's Issues

Implement WebSockets for comments

Tasks

  • Render comments list on college page on load from the DB
  • Capture user input to component state
  • Submit handler to emit socket event and send data to server
  • Server socket listener for new message to write message to DB
  • On DB write complete, socket broadcast to all clients with comments table

Add react router routes for uni chat

To Dos

  • Make a new <Route> for /college/:id in index.jsx
  • Make sure ResultListEntry has access to university_id so it can render the right university banner and GET and POST comments for the correct university
  • Make a new <Link> in ResultListEntry`

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.