An open API service indexing awesome lists of open source software.

https://github.com/jghaden/qr-barcode-generator

Static website using Express to construct a REST API to generate barcodes and QR codes.
https://github.com/jghaden/qr-barcode-generator

barcode express qrcode rest-api

Last synced: about 2 months ago
JSON representation

Static website using Express to construct a REST API to generate barcodes and QR codes.

Awesome Lists containing this project

README

          

# Express REST API

This is a static website using Express on the backend to construct a REST API to generate barcodes and QR codes.

![](/pics/qrcode.png) ![](/pics/barcode.png)

# Overview

1. [Description](#description)
2. [Requirements](#requirements)
3. [Installation](#installation)
4. [Running](#running)

# Description

I had previous experience building an API such as my [**MEAN Template**](https://github.com/jghaden/mean-template), but I wanted to experiment more by working with API keys and secrets. As of right now, the API Key is generated by [**jsonwebtoken**](https://www.npmjs.com/package/jsonwebtoken) for the sake of easy verification and the API secret is a alphanumeric string generated by [**randomstring**](https://www.npmjs.com/package/randomstring).

# Requirements

This application requires installation of [**NodeJS**](https://nodejs.org/) prior to running.

# Installation
```
$ npm install
```

## Start server

If you wish to have [**nodemon**](https://www.npmjs.com/package/nodemon) watch your code changes, run:

```
$ npm dev
```

or you wish to start the server only with Node:

```
$ npm start
```

# Running

### Generate API key and secret by providing a username

![](/pics/api-gen.png)

### Leaving the API Key and Secret blank will use default values

![](/pics/gen-with-default.png)

### Or, you can enter your own API key and Secret to generate a barcode or QR code

![](/pics/gen-with-custom.png)