Skip to content
This repository has been archived by the owner on Aug 11, 2019. It is now read-only.

episodehunter/episodehunter-old

Repository files navigation

Episodehunter

Backend for episodehunter

This is part of an ongoing project to rewrite episodehunter.tv to an node.js project. Parallel to this project, there is an ongoing project to rewrite the front end part of episodehunter here

Requirement (see below)

  • Node >= 4.0
  • MySQL >= 5.6
  • Redis >= 3.0

Clone

$ git clone [email protected]:episodehunter/episodehunter.git

Install

$ node setup.js

Usage

Server

This project is currently using MySQL as database. You can use vagrant for this. Head over to ./vagrant and run $ vagrant up. This will create a virtual machine (using Ubuntu) and creating a database and make the database accessible from the host.

$ cd vagrant
$ vagrant up # This will take a while

You can now connect to the database from your machine with the following credentials:

  • Host: 127.0.0.1
  • Username: episodehunter
  • Password: episodehunter
  • Port: 33060 (this port maps to 3306 on the guest machine)

You can also access Redis by;

  • Host: 127.0.0.1
  • Port: 6379

Start

$ vagrant ssh
$ cd data
$ pm2 start process.json

Why a monorepo?

Copy and pasted from https://github.com/babel/babel/blob/master/doc/design/monorepo.md

Pros:

  • Single lint, build, test and release process.
  • Easy to coordinate changes across modules.
  • Single place to report issues.
  • Easier to setup a development environment.
  • Tests across modules are ran together which finds bugs that touch multiple modules easier.

Cons:

  • Codebase looks more intimidating.
  • Repo is bigger in size.

This is dumb! Nobody in open source does this!

React, Meteor, and Ember, among others, do this.

Previous discussion

About

Backend for episodehunter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published