Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

MarcMeszaros/5by-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Everything is in one repo to keep things together. Change into each subdirectory before starting each part.

Note: I have never built a project that used mongodb/nodejs before, so chances are I'm not following best practices...

Server

The server is responsible for getting data into the database from reddit and to serve up the website and API.

System Requirements

The following system requirements are assumed to be installed.

  • Node.js 0.10+
  • MongoDB 2.6+

Setup

  1. Run npm install in the server directory
  2. Run mkdir data in the server directory

Run the Server

  1. In one console, run mongod --dbpath data
  2. In another, run ./bin/www
  3. Go to localhost:3000 in your browser

Caveats

  • You may need to refresh the main page on the web a few times before there are videos in the DB (see comments in code).

Android

The Android application uses the REST API from the server project. Make sure the server is running before you try to use the Android application.

Setup

  1. Download Android Studion
  2. Import the project using Android Studion
  3. Determine the public IP of the server, and modify android/app/build.gradle and make sure the API_HOST value points to your server and is accessible by the device
  4. Run the application

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published