Skip to content

cristianglezm/FlowerEvolver-frontend

Repository files navigation

Flower Evolver

cd

Visit the website here

Frontend for Flower Evolver (a tool of EcoSystem), the Backend is found here

Docker

The frontend image must be built as it is a SPA and it needs to be configured.

You can build the image running the following command after cloning the repo, change the environment variables as needed.

docker build -t cristianglezm/fe:frontend-alpine-dev -f dockerfile.alpine \
    --build-arg "REWRITE_ENV=TRUE" --build-arg "BASE_URL='/'" --build-arg BACKEND="http://localhost" .
docker run -dp 80:80 -v logs:/var/log/nginx cristianglezm/fe:frontend-alpine-dev -e "API=localhost:5000"

more info here

Running

Change BACKEND inside the ".env" file to point to the backend. Change VITE_APP_BASE_URL if needed (it needs to end with /)

BACKEND=http://localhost:5000
VITE_APP_BASE_URL='/'
VITE_APP_IMAGES_URL=$BACKEND/generated/
VITE_APP_API_URL=$BACKEND/api/
VITE_APP_DOWNLOAD_URL=$BACKEND/download/

then run

npm install
npm run dev

License

Copyright 2020-2024 Cristian Gonzalez cristian.glez.m@gmail.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Flower Evolver

Copyright 2015-2024 Cristian Gonzalez Cristian.glez.m@gmail.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Monaspace font

Copyright (c) 2023, GitHub https://github.com/githubnext/monaspace with Reserved Font Name "Monaspace", including subfamilies: "Argon", "Neon", "Xenon", "Radon", and "Krypton"