https://github.com/vroudge/wemaintain-tech-test
https://github.com/vroudge/wemaintain-tech-test
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vroudge/wemaintain-tech-test
- Owner: vroudge
- Created: 2019-11-05T03:37:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T07:52:36.000Z (over 2 years ago)
- Last Synced: 2025-02-05T06:34:06.070Z (4 months ago)
- Language: TypeScript
- Size: 1.69 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WeMaintain tech test
### How to bootstrap
- Ensure you have docker installed and that you are running Node LTS (`12.13.0` at the time of writing).
- Run `yarn`
- Run `make setup`.
- The Couchbase interface should be reachable on `http://localhost:8091/ui/index.html` once it's up and running, with `DBAdmin` and `admin123` as login and password. Nothing is persisted beyond the `docker-compose up` in order to not pollute your local machine. If you `docker-compose down`, you need to rerun `make setup`.### Running tests
- Just run `npm test`. You need your environment to be bootstrapped with `make setup` beforehand.
### Running the app
- You can use `npm run dev` to run the application in a live-reloading `nodemon` daemon.
- Or you can use `npm start` to run the application using `ts-node`.- Try `curl http://localhost:8080/concerts?latitude=52.5183113&longitude=13.4717676&radius=5 | jq` for a quick example ;)