/webofcomics-frontend

React based frontend for the "Web of comics" webapp

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

webofcomics-frontend

React based frontend for the "Web of comics"1 webapp.

[1] I will probably find a better name for this in the future ;-)

Configuration

Set an environment variable called REACT_APP_HTTP_API= pointing to the base URL of the HTTP API.

You can do this by creating a file called .env which contains something like:

REACT_APP_HTTP_API='http://localhost:5000'

Run on development mode

yarn install # if necessary
yarn start

Production version

To create the production-ready static files of the frontend run:

yarn build

If Docker is detected, this command will also create an image with an static web server and the build files. To run a container of this image, simply run:

yarn deploy