Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drewmoore/my-transit
Personalized transit reports, currently Berlin's BVG
https://github.com/drewmoore/my-transit
docker docker-compose es7 eslint express jest mongodb mongoose nodejs
Last synced: about 7 hours ago
JSON representation
Personalized transit reports, currently Berlin's BVG
- Host: GitHub
- URL: https://github.com/drewmoore/my-transit
- Owner: drewmoore
- License: mit
- Created: 2018-10-01T07:58:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-28T21:19:05.000Z (over 5 years ago)
- Last Synced: 2024-11-16T01:42:10.698Z (2 months ago)
- Topics: docker, docker-compose, es7, eslint, express, jest, mongodb, mongoose, nodejs
- Language: JavaScript
- Size: 62.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/drewmoore/my-transit.svg?branch=master)](https://travis-ci.org/drewmoore/my-transit)
[![codecov](https://codecov.io/gh/drewmoore/my-transit/branch/master/graph/badge.svg)](https://codecov.io/gh/drewmoore/my-transit)
[![Test Coverage](https://api.codeclimate.com/v1/badges/4b8892070e2d36d69702/test_coverage)](https://codeclimate.com/github/drewmoore/my-transit/test_coverage)
[![Maintainability](https://api.codeclimate.com/v1/badges/4b8892070e2d36d69702/maintainability)](https://codeclimate.com/github/drewmoore/my-transit/maintainability)# My Transit
Personalized transit reports, currently Berlin's BVG## Set-Up Environment
- install docker
- follow steps given at https://docs.docker.com/install/linux/docker-ce/ubuntu/
- allow non-root use (allows root-level permissions for user!):
- `sudo groupadd docker`
- `sudo usermod -G docker -a $USER`
- logout/login user. May require system restart
- install docker-compose
- sudo apt install docker-compose## Commands
- run tests
- `docker-compose run web yarn test`
- run locally
- `docker-compose run web`
- deploy
- `export DIGITALOCEAN_ACCESS_TOKEN=...;`
- `docker-machine create --driver digitalocean --digitalocean-region fra1 my-transit`
- `docker-machine ssh my-transit "docker swarm init --advertise-addr ...`
- `docker-machine env my-transit`
- `eval $(docker-machine env my-transit)`
- `docker stack deploy -c docker-compose.yml my-transit`