API is used for 2 frontent application:
- React Web application React-web
- React Native (android & iOS) application React-native
Application which uses React + Redux + Rails API
Follow these steps to setup the application:
$ bundle install
Create a renamed copy of the application.yml.sample file in config folder.
$ cp config/application.yml.sample config/application.yml
It is necessary to add Amazon S3 variables to config/application.yml
. You have to setup your own Amazon S3 bucket on Amazon S3.
# config/application.yml
development:
S3_ACCESS_KEY_ID: "your_s3_access_key_id"
S3_SECRET_ACCESS_KEY: "your_s3_secret_access_key"
S3_REGION: "your_s3_region"
S3_BUCKET: "your_s3_bucket_name"
$ rake db:setup
Run server:
$ rails s
To test Rails controllers and models:
$ rspec