v0.3.4
This version improves development experiences (no visible feature changes).
--
The general development flow works like this:
- Create a mongodb instance, for example, change the
docker/docker-compose.yml
file to the following
version: "3"
services:
# redir:
# restart: always
# image: redir:latest
# environment:
# REDIR_CONF: ./data/redirconf.yml
# depends_on:
# - mongo
# deploy:
# replicas: 1
# networks:
# - traefik_proxy
mongo:
restart: always
container_name: redirdb
image: mongo:latest
ports:
- "27018:27017"
volumes:
- ../data/mongo:/data/db
# networks:
# - traefik_proxy
# networks:
# traefik_proxy:
# external: true
make run
and the database will be started- Modify backend settings in
internal/config/config.yml
:
-cors: false
+cors: true
auth:
- enable: true
+ enable: false
- Build and run the backend:
make
make run
- Modify frontend settings in
dashboard/public/index.html
:
- <!-- <div id="root" is-admin="true" stats-mode="true" dev-mode="true"></div> -->
- <div id="root" is-admin="{{.AdminView}}" stats-mode="{{.StatsMode}}" dev-mode="{{.DevMode}}"></div>
+ <div id="root" is-admin="true" stats-mode="true" dev-mode="true"></div>
+ <!-- <div id="root" is-admin="{{.AdminView}}" stats-mode="{{.StatsMode}}" dev-mode="{{.DevMode}}"></div> -->
- Open a different terminal, run the frontend via
npm start
. The application should run smoothly.