Skip to content

v0.3.4

Compare
Choose a tag to compare
@changkun changkun released this 29 Aug 16:09
· 27 commits to main since this release

This version improves development experiences (no visible feature changes).

--

The general development flow works like this:

  1. 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
  1. make run and the database will be started
  2. Modify backend settings in internal/config/config.yml:
-cors: false
+cors: true
auth:
-  enable: true
+  enable: false
  1. Build and run the backend:
make
make run
  1. 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> -->
  1. Open a different terminal, run the frontend via npm start. The application should run smoothly.