Skip to content

coworking-metz/tickets-manager-web

Repository files navigation

Tickets Manager Web

Manage members, services and collect stats from Le Poulailler - Coworking Metz.

Getting Started

These instructions will give you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Requirements for the software and other tools to build, test and push

  • Git - Version control system
  • Node - Cross-platform JavaScript runtime environment

Install

A step by step series of examples that tell you how to get a development environment running:

git clone [email protected]:coworking-metz/tickets-manager-web.git
cd tickets-manager-web
yarn

Start the project

yarn dev

Build locally

yarn build
yarn serve

Then go to http://localhost:9090

Deploy

Everything is done through GitHub actions.

Troubleshoot

echarts

[vite]: Rollup failed to resolve import "echarts/core"

If you are having problem during build, use patch-package to patch the necessary lines (source) :

  • Change the following files accordingly

/node_modules/vue-echarts/dist/index.esm.js

@@ -1,5 +1,5 @@
 import { watch, unref, inject, computed, watchEffect, Vue2, defineComponent, shallowRef, toRefs, getCurrentInstance, onMounted, onBeforeUnmount, h, nextTick } from 'vue-demi';
-import { throttle, init } from 'echarts/core';
+import { throttle, init } from 'echarts/core.js';

/node_modules/vue-echarts/package.json

@@ -1,6 +1,14 @@
 {
   "name": "vue-echarts",
   "version": "6.6.8",
+  "type": "module",
+  "exports": {
+    ".": {
+      "require": "./dist/index.cjs.js",
+      "import": "./dist/index.esm.js",
+      "types": "./dist/index.d.ts"
+    }
+  },
  • Then run
npx patch-package vue-echarts --exclude 'nothing' --use-yarn

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments