Introduction applet scan code attendance

After local debug and deploy cloud a few weeks, my second paragraph application-level small program finally on the line.

Wrote many small programs, we have seen a lot of punch small program, but then this must be the most humane one, am proud to recommend it to everyone, regardless of class activities punch, punch or company annual meeting , this punch applets are useless.

In the micro-channel can search scan code attendance referred to experience the applet, the applet code or scan below.

Here Insert Picture Description

Interface List

Quick punch interface

New Task interface

Task Management Interface

Task detail screen

Punch detail screen

About Interface

Instructions

1, the new punch task can copy the invitation code or invite friends to participate in a two-dimensional code.

2, in the Task Manager -> My participation in the interface, click for a punch card details, press to delete.

3, if not open the GPS; quick punch will refresh the page data is not timely.

4, the punch is within the range of 1 km job site; a punch time is within two hours before the deadline punch.

Development Process

Applet native development, use third-party components ColorUI, QRCode and so on.

Background using the Flask, although that is lightweight Web framework, but to cope with tens of thousands of concurrent, or no problem, not to mention the back also with a Nginx load balancing.

Laboriously compiled a good interface, an interface written in preparation for the line, but found a small program can only be accessed through the domain name after the record, so I applied for a domain name, for the record waited two weeks, there is a pit remind some domain name suffix is ​​not the record, but the record of the domain name will not be approved gradually, specifically online, there is a particularly difficult .cn domain name for the record.

uwsgi/nginx/supervisor

While waiting for the record, first make the clouds debugging ip address, mainly uwsgi + nginx + supervisor technical route.

Students first contact with these three things might look ignorant force, listen to me one by one.

1, nginx: Nginx (engine x) is a high performance HTTP web server and reverse proxy, which occupy less memory is characterized by strong concurrency.

2, uwsgi: Python code for processing application server, Flask test server comes not sufficient to support use in a production application.

3, supervisor in times uwsgi abnormal exit, supervisor can make this service automatic restart. That is used as a daemon.

Coordination of these three things, to ensure the stable operation of our background.

a web server / application server / web application framework

web server (for static pages) The application server (processing logic main layer) web application framework
Responsible for handling http requests, responses static files, often with Apache, Nginx and Microsoft's IIS. Responsible for handling the logical server. Such as php, python code, not directly by nginx web server to handle this, can only be handled by the application server, common application server has uwsgi, tomcat and so on. A language generally used, encapsulating a common framework is web-enabled web application framework, flask, Django and the Java SSH (Structs2 + Spring3 + Hibernate3) frameworks are web application framework

When we enter the URL in the browser request, if the request is for a static resource, the web server immediately returned to the browser, if the sender is a logical request, the web server requests to the application server for processing.

Published 84 original articles · won praise 250 · Views 150,000 +

Guess you like

Origin blog.csdn.net/ygdxt/article/details/97619155