https://github.com/egnwd/outgain
AI based evolution simulation
https://github.com/egnwd/outgain
evolution-simulation game heroku web-app
Last synced: 20 days ago
JSON representation
AI based evolution simulation
- Host: GitHub
- URL: https://github.com/egnwd/outgain
- Owner: egnwd
- License: mit
- Created: 2016-05-22T05:43:42.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-20T16:34:09.000Z (over 9 years ago)
- Last Synced: 2024-04-14T19:43:39.918Z (almost 2 years ago)
- Topics: evolution-simulation, game, heroku, web-app
- Language: Go
- Size: 3.68 MB
- Stars: 13
- Watchers: 6
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# outgain
AI based evolution simulation
## Dependencies
- Go
- Node
- Gulp (`npm install -g gulp`)
Run `npm install` inside the `node_modules` directory.
## Building
Running `./build_all.sh` from the root of the project will build everything.
### Client
From the `client` directory, run `gulp`.
Alternatively, `gulp watch` will watch for changes to the source and rebuild
automatically.
### Server
From the `server` directory, run `go build`.
## Running
To run the outgain server, run the following from the root of the project :
```shell
./server/server
```
This will listen on port 8080 by default, use the `PORT` environment variable
to override.
It will serve the files for the client from the `client/dist` directory.
## Deploying
Pushing to master or merging a pull request into it will build both the server and
the client on Circle CI.
If the build is succesful, it will be deployed automatically to Heroku.
Only the files needed to run the server are pushed to Heroku.
Check the `build_slug.sh` if you need to add some files.
## Manual deployment
Unless you have a good reason to, you shouldn't do this, but rely on the CI to deploy
automatically.
```
./build_slug.sh app
tar czvf slug.tgz ./app
HEROKU_OAUTH_TOKEN="" ./deploy.rb outgain slug.tgz
```
## Credit
Diamond by iconsphere from the Noun Project