Skip to content

dy93/wedding-form

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

地表最(ㄗˋ)有(ㄐㄧˇ)誠(ㄒㄧㄝˇ)意(ㄉㄜ˙)婚禮調查表

Preview

screen shot

TL;DR

  1. Prerequisite
    1. node(8.x)
    2. yarn(latest)
  2. Prepare
    1. (Optional) Prepare google analytics id
    2. Run mv client/src/config.example.js client/src/config.js and modify client/src/config.js
    3. Run mv client/.example.env client/.env and modify client/.env (optional replace the REACT_APP_GA_ID)
    4. Replace client/public/bg.jpg
  3. Build client js: cd client && yarn install && npm run build
  4. Run server: cd server && yarn install && npm run start

Now you can visit your server at http://localhost:5000

Query zip code

Run node server/bin/queryZipCode.js

This script will iterate each user's address and get taiwan zip code(3+2) from http://zip5.5432.tw/, delay 1.5 seconds each.

Where is my data?

The data is store at server/db.sqlite, a sqlite database. You can use your favorite sqlite client to export data, eg: sqlite3 -column -csv -header server/db.sqlite 'select * from form'

How to develop

Client side

  1. Run webpack-dev-server: cd client && npm run start
  2. Run server: cd server && npm run start
  3. Browse http://localhost:3000
  4. Edit code and enjoy auto-reload!

Server side

  1. Edit code and run server: cd server && npm run start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published