React frontend application for the Smarter Balanced Content Specification Explorer project. The backend can be viewed here, while a development deployment of this application is available at this link.
To get started, clone the repo and install all dependencies:
# From a directory of your choice
git clone https://github.com/osu-cass/AP-CSE-APP
# Enter the cloned repo
cd AP-CSE-APP
# Install dependencies
npm install
To install the dependencies for this application you will be required to install rsync. You can do this by open powershell and typing the following command:
choco install rsync
To begin working on AP-CSE-APP, you have two choices: Run Storybook for component development, or run the frontend application with webpack
.
To launch Storybook, run the following command:
# Launch Storybook at http://localhost:9001
npm run storybook
Code changes should be automagically loaded into Storybook with the page loaded.
To run the application locally, run the following command:
# Run the application at http://localhost:8080
npm run dev
Once again, any code changes should automatically be loaded without needing to refresh.
To package this app for deployment you will need to build a docker image. You can do this by running the following command in the root directory of this project.
docker build -t osucass/content-specification-explorer-app:<some-tag> --build-arg API=<endpoint here> -f build/Dockerfile .
You can verify that your build is working correctly by running:
docker run -p 8000:80 osucass/content-specification-explorer-app:<some-tag>
You can push this image to docker hub using:
docker push osucass/content-specification-explorer-app: