https://github.com/forsaken1/triathlets
Web app for Vladivostok's triathlets
https://github.com/forsaken1/triathlets
amber amber-framework crystal crystal-language sport sports-stats triathlon website
Last synced: 5 months ago
JSON representation
Web app for Vladivostok's triathlets
- Host: GitHub
- URL: https://github.com/forsaken1/triathlets
- Owner: forsaken1
- License: mit
- Created: 2017-09-11T07:16:21.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-01-05T01:04:04.000Z (almost 6 years ago)
- Last Synced: 2025-04-01T04:41:26.189Z (7 months ago)
- Topics: amber, amber-framework, crystal, crystal-language, sport, sports-stats, triathlon, website
- Language: Crystal
- Homepage: http://triathlets.krylov-alexey.ru
- Size: 938 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Triathlets
Project for triathlets
## Installation
Install amber framework.
Then:
```
shards update
crystal sam.cr -- db:create
crystal sam.cr -- db:migrate
crystal db/seeds.cr
```## Usage
To run the demo:
```
crystal build src/triathlets.cr -o bin/triathlets --release --stats
bin/triathlets
```or
```
amber w
```run in production:
```
nohup amber r -p PORT -e production &
```or
```
AMBER_ENV=production PORT=PORT nohup bin/triathlets &
```## Docker and Docker Compose
This will start an instance of postgres, migrate the database, run the specs,
and launch the site at http://localhost:3000
```
docker-compose up -d
```To view the logs:
```
docker-compose logs -f
```Note: The Docker images are compatible with Heroku.
## Contributing
1. Fork it ( https://github.com/forsaken1/triathlets/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request## Contributors
- [forsaken1](https://github.com/forsaken1) Krylov Alexey - creator, maintainer