Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nathankot/nktimesheeting
https://github.com/nathankot/nktimesheeting
Last synced: 26 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nathankot/nktimesheeting
- Owner: nathankot
- Created: 2016-06-10T05:50:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-06-10T05:52:00.000Z (over 8 years ago)
- Last Synced: 2024-10-26T22:47:53.866Z (2 months ago)
- Language: Haskell
- Size: 25.8 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nktimesheeting
## The stack
### Frontend
* [Vue.js][vue]
* [RxJS][rxjs]
* [SASS][sass]### API Server
* [Haskell][haskell]
* [PostgreSQL][postgres]
* [Yesod][yesod]## Toolchain dependencies
* [Stack][stack]
* NPM
* Docker## Development
### Setup
Install postgres and make a new user and db:
createuser newapp -W # choose 'newapp' for the password
createdb newapp --owner=newapp
createdb newapp-testing --owner=newappRun a server for the static files on port `8080`:
cd web
npm install webpack -g
npm install
npm run devRun the API server on port `3000`:
cd server
stack build --exec serverThe static server will automatically forward API requests to the API server
during development. Visit `http://localhost:8080/` to develop.### Testing
Run server tests with `stack`
cd server
stack testRun frontend tests with `npm`
cd web
npm test## Deployment
Ensure you have docker setup and running. If you're on OSX look into [docker-machine][docker-machine].
Use `make` to build everything:
make
Commit and push to Heroku:
heroku buildpacks:set https://github.com/nathankot/heroku-binary-buildpack
git commit -m "Build"
git push heroku master[vue]: http://vuejs.org
[sass]: http://sass-lang.com
[rxjs]: https://github.com/Reactive-Extensions/RxJS
[yesod]: https://github.com/yesodweb/yesod
[haskell]: http://haskell.org
[stack]: http://haskellstack.org
[postgres]: http://www.postgresql.org/
[docker-machine]: https://docs.docker.com/machine/