hostr/README.md

41 lines
1.2 KiB
Markdown
Raw Normal View History

2016-05-24 19:37:12 +01:00
# Hostr
2015-08-23 23:50:37 +00:00
2015-08-23 19:12:59 +01:00
## About
2019-01-13 17:48:27 +00:00
Hostr is a project I started over ten years ago when I set out to learn web development. Since then it's seen over 100,000 signups and served up over 2 billion file downloads.
2015-08-23 19:12:59 +01:00
2019-01-13 17:48:27 +00:00
It has been through many iterations, but in its current incarnation Hostr uses [Koa](http://koajs.com/) for the backend, [Angular](https://angular.io/) and [Webpack](http://jspm.io) for the frontend, and [Babel](https://babeljs.io/) for both.
2015-08-23 19:12:59 +01:00
2015-07-09 23:01:43 +01:00
## Getting Started
### Dependencies
2019-01-13 17:48:27 +00:00
Everything is taken care of by a `make build`.
2015-07-09 23:01:43 +01:00
2015-08-23 17:52:22 +01:00
### Enviroment Variable Configuration
2015-07-09 23:01:43 +01:00
2018-06-02 19:01:31 +00:00
See [`.envrc.example`](.envrc.example). Copy it to `.envrc`, modify and `source .envrc` for development. [direnv](https://github.com/direnv/direnv) is pretty nice for doing this automatically when you `cd` into your work directory.
2015-07-09 23:01:43 +01:00
## Usage
### Start the app
2015-08-23 17:52:22 +01:00
```
2018-06-02 19:01:31 +00:00
$ make docker-compose-up
2015-08-23 17:52:22 +01:00
```
2018-06-02 19:01:31 +00:00
### Initialise the environment
2015-08-30 18:35:05 +02:00
```
2018-06-02 19:01:31 +00:00
$ make init migrate
2015-08-30 18:35:05 +02:00
```
2015-07-09 23:01:43 +01:00
### Run the tests
2015-08-23 17:52:22 +01:00
```
2018-06-02 19:01:31 +00:00
$ make test
2015-08-23 17:52:22 +01:00
```
2015-07-09 23:01:43 +01:00
## Licence
2016-06-02 21:24:31 +01:00
My primary motivation is to get to work on Hostr in public. Contributions are welcome and all Javascript is Apache licenced, however the brand is not. The brand includes the name, logo images, CSS and marketing HTML.