API
GHShop API
This project is powered by Amber Framework.
Installation
- Install required dependencies
- Run
shards install
Usage
To setup your database edit database_url
inside config/environments/development.yml
file.
To edit your production settings use amber encrypt
. See encrypt command guide
To run amber server in a development enviroment:
amber db create migrate
amber watch
To build and run a production release:
- Add an environment variable
AMBER_ENV
with a value ofproduction
- Run these commands:
npm run release
amber db create migrate
shards build --production
./bin/gh_shop
Docker Compose
To set up the database and launch the server:
docker-compose up -d
To view the logs:
docker-compose logs -f
Note: The Docker images are compatible with Heroku.
Contributing
- Fork it ( https://github.com/GHShop/API/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- c910335 Tatsiujin Chin - creator, maintainer
Repository
API
Owner
Statistic
- 0
- 0
- 0
- 0
- 7
- over 6 years ago
- March 26, 2018
License
MIT License
Links
Synced at
Sun, 22 Dec 2024 01:44:25 GMT
Languages