If you want to just try Einstore go to https://github.com/Einstore/Einstore for the easiest setup with Docker.
This repository is for customizing the admin UI.
Use make
, make help
prints all avaible commands.
Direnv is used for adding bin-docker
to PATH
Ports are exposed using docker-compose.override.yaml
For initial login in basic data is email core@liveui.io
, default password: sup3rS3cr3t
yarn install
Install all dependencies
In the project directory, you can run:
Usage:
make <target>
Targets:
help Display this help
yarn-install Runs yarn install in docker
up Does docker-compose up, automaticly create docker-compose.override.yaml
update Update to the latest docker images
clean Deletes all containers and volumes. WILL DROP ALL DB DATA
install-db Install basic data
install-demo Install demo data
direnv Create .envrc for bin-docker
local Start against local development API server
- You need to provide URL to Einstore API with env variable:
# Your local API
REACT_APP_API_URL=http://localhost:8080 yarn start
# or just the following using our Makefile
make local
# Try our running demo
REACT_APP_API_URL=https://demo.einstore.io/api yarn start
Runs the app in development mode.
Open http://localhost:3000 to view in the browser.
The page will reload, should you make edits, on file save.
You will also see any lint errors in the console.
REACT_APP_API_URL=https://demo.einstore.io/api yarn start
REACT_APP_API_URL=https://demo.einstore.io/api REACT_APP_SENTRY_DSN=https://secret@sentry.mangoweb.org/your-project yarn start
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
Warning! By default
yarn build
expects you to manually replace%REACT_APP_API_URL%
insidepublic/index.html
with URL to EinstoreCore API. Or you can provide it with env variable in build command.