This project was developed with the intention of using the BrowseEverything Rails Engine as a RESTful API, and this React application as a client.
In order to deploy BrowseEverything locally for developing this app. in your local environment, please ensure that you are using the following dependencies:
- Ruby 2.6.5 or later
- Bundler 2.1.4 or later
Then, please follow these steps:
- Clone the repository
git clone -b 2.x-stable https://github.com/samvera/browse-everything.git
- Install the Gem dependencies and generate the test app.
RAILS_VERSION=6.0.2 bundle install
RAILS_VERSION=6.0.2 bundle exec rake engine_cart:generate
cd .internal_test_app
- Run the Rails server
bundle install
bundle rails server
The Rails API should now be accessible on http://localhost:3000/api-docs
Please ensure that the following dependencies are installed on your local environment for the React app:
- NodeJS 12.16.0 or the latest LTS Erbium release
- Yarn 1.21.1 or later
- Clone the repository
git clone https://github.com/samvera-labs/browse-everything-redux-react.git
- Install the package dependencies
yarn install
- Run the static server
yarn start
The React app. should be accessible http://localhost:3001
At this point, the user interface should be able to communicate with the Rails API.