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
- Node >= 4.0
- MySQL >= 5.6
- Redis >= 3.0
$ git clone [email protected]:episodehunter/episodehunter.git
$ node setup.js
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
$ vagrant ssh
$ cd data
$ pm2 start process.json
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.