GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Aaron145/api-server: 武汉新型冠状病毒防疫信息收集平台后端代理

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

104 Commits
104 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
config
config
 
 
src
src
 
 
wuhan2020 @ 8fd68c2
wuhan2020 @ 8fd68c2
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
.python-version
.python-version
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
Dockerfile
Dockerfile
 
 
README-cn.md
README-cn.md
 
 
README.md
README.md
 
 
bootstrap
bootstrap
 
 
const.py
const.py
 
 
requirements.txt
requirements.txt
 
 
tools.py
tools.py
 
 
utils.py
utils.py
 
 

Repository files navigation

API Server

Python3.6 Slack Channel Built with love Build Status

中文文档

This a backend API service of the voluntary information collection and sharing platform to fight against the 2019-nCoV outbreak in Wuhan and the world.

The API is designed to be thin and stateless. It relies on the data collected and validated by other sub-projects, transform and expose them through standard RESTful APIs. The service is written in Python and Flask.

Get Started

Please first clone this repository and the sub-module-repo by:

git clone https://github.com/wuhan2020/api-server
cd api-server
git clone https://github.com/wuhan2020/wuhan2020

Running locally with Docker (Recommended)

Pre-requisite: You have to have Docker client installed on your machine.

Build the Docker image

Run:

docker build -t api-server:default .

from the root directory of the clone of this repo. Note this step could take a long time dependd on where you are located in.

Run built Docker image

Run:

docker run --name api-server --publish 9000:9000 api-server:default 

and then open http://localhost:9000 in your browser. (Add -d to run the Docker container in detach/background mode)

You should see a Swagger page documents the available endpoints now.

If you ran into error The container name "/api-server" is already in use, please run docker rm api-server to delete previous container which has the same name.

Stop running Docker container

Run:

docker stop api-server 

to stop the running container.

Running with your own Python environment

Please make sure you have Python3.6 installed, (ideally you should be using a VirtualEnv or something like PyEnv). Then from the root directory of the cloned repo, run:

pip install -U -r requirements.txt

and then start the server by:

bash bootstrap

now if you open http://localhost:9000 in your browser, you should see a Swagger page documents the available endpoints.

Development

Coming soon...

Deployment

Coming soon...

Contributing

Please see Conntributing Guide

Front-end issues

Plases check here

About

武汉新型冠状病毒防疫信息收集平台后端代理

Resources

Readme

Contributing

Contributing
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.