xoverride / envelope

A small tool to track your US plain letter

Home Page:https://slu.t.cuitian1.com/envelope/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A small website to generate USPS Envelopes with Trackable Barcode

Features

  1. Generate a ready-to-print envelope pdf and html
  2. The envelope has a traceable barcode
  3. Show status of your first class mail without certify!

Install

Create a config.py containing the following content in the root folder:

MAILER_ID = <Your mailer id>
SRV_TYPE=40
BARCODE_ID=0
BSG_USERNAME= <Your USPS business account username>
BSG_PASSWD= <Your USPS business account password>
FLASK_SESSION_KEY= <Very secret flask key>
USPS_WEBAPI_USERNAME= <Your USPS webtool username>

Get a mailer ID here for free: Guide

Modify the Dockerfile:

ENV SCRIPT_NAME=/envelope
EXPOSE 8080

means your service will run under:

http://127.0.0.1:8080/envelope/

Build the docker image:

docker build -t envelope_image .

Run it:

docker run -p 8083:8080 --name envelope_app -d --restart=always envelope_image

About

A small tool to track your US plain letter

https://slu.t.cuitian1.com/envelope/


Languages

Language:Python 59.3%Language:HTML 36.5%Language:CSS 2.2%Language:Dockerfile 1.8%Language:Shell 0.2%