Dynamic QR Code is an app that generate a QR Code which the target (the url contained in it) can be changed at will without generating new code.
This app requires some packages as its dependencies.
Depedencies | Side |
---|---|
Express | Backend |
Mongoose | Backend |
Vue | Frontend |
Axios | Frontend |
Tailwindcss | Frontend |
Because backend will serve static files, we need to build the frontend and copy it to the backend's folder.
- Clone this repository.
git clone https://github.com/coomico/dynamic-qr.git
- Enter the web directory.
cd web
- Install packages manager for frontend side.
npm install
- Build the frontend and copy it (all contents of 'dist' folder) to the /api/views.
npm run build cd dist cp -r . ../../api/views
- Move to backend side and install the packages manager.
cd ../../api npm install
There are several environtment that is needed by the App.
DOMAIN=domain.con
BASE_URL=localhost
BASE_PORT=3000
MONGO_HOST=127.0.0.1
MONGO_PORT=27017
MONGO_USER=your_mongo_user
MONGO_PASS=your_mongo_pass
SECRET_KEY=himitsu
Run the following simple command.
npm start