This repository has been archived by the owner. It is now read-only.
public-apis-web
publicapi
A new project using Amber Framework
Installation
Install back-end and front-end dependencies.
shards install
npm install
Configure the config/environments/development.yml
and set the database_url
with your credentials to your database.
Then:
amber db create migrate
Usage
Development
To build crystal files:
amber watch
To build assets:
npm run watch
Production
To setup AMBER_ENV
:
export AMBER_ENV=production
To build a production release:
shards build --production --release publicapi
To build production assets:
npm run release
Import data
crystal src/tasks/import.cr
To use encrypted enviroment settings see documentation
Docker Compose
This will start an instance of postgres, migrate the database, 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
- Fork it ( https://github.com/danielRomero/public-apis-web/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
- danielRomero Daniel Romero - creator, maintainer
Repository
public-apis-web
Owner
Statistic
- 1
- 0
- 0
- 0
- 6
- almost 7 years ago
- December 22, 2017
License
Links
Synced at
Sat, 21 Dec 2024 20:02:42 GMT
Languages