Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clitetailor/qr-code-tracking
https://github.com/clitetailor/qr-code-tracking
Last synced: 26 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/clitetailor/qr-code-tracking
- Owner: clitetailor
- License: mit
- Created: 2019-03-24T05:53:03.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2023-01-07T15:09:10.000Z (about 2 years ago)
- Last Synced: 2024-05-28T23:09:30.360Z (8 months ago)
- Language: JavaScript
- Size: 1.69 MB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 34
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# QR Code Tracking
## Prerequisite
- NodeJS
- Yarn
- PostgreSQL## Installation
### DotEnv
`.dotenv` contains the API Keys for Here Maps. You need to make a copy of `.dotenv` from the current `.dotenv.example`. Create a new account at [Here developer portal](`https://developer.here.com/`) and replace the placeholder in `.dotenv` with your own keys.
### Database
Install and config Postgres to run on port 5432. If you run the database inside Vagrant virtual machine, you may need to edit `postgresql.conf` and `pg_hba.conf` located in `/etc/postgres`.
Node adapter configuration is located at `database.js` in current project folder. Create a Postgres account with the same username and password as configuration in `database.js`
Run Sequelize migration before starting the server to keep track of changes to the database:
```bash
$ yarn sequelize db:migrate
```### Node
Before you run the application, run the following command to install the dependencies:
```bash
$ yarn
```## Start the Server
To run the program, you need to run the web development server alongside the node backend server
To start the web development process run:
```bash
$ yarn web:autobuild
```To start the node backend development server run:
```bash
$ yarn server:dev
```