Code Monkey home page Code Monkey logo

vn-open-api-provinces's Introduction

Viet Nam province API

Homepage: https://provinces.open-api.vn

This is online tool to let my VietnamProvinces library reach more users. VietnamProvinces is a Python library, so it can only be used in Python application. By building an online tool on top of it, I hope to help Viet Nam standard data reach more application developers, easpecially web frontend application, where inclusion of big JSON file is not an optimized option. In the end, it can help businesses collaborate better (by using the same standard data) and benefit people.

The online tool is built to run on Vercel platform, so that I don't have to pay for infrastructure, because this tool is FREE to use.

Development guide

If you want to join development, this is what you want to know:

The code consists of two parts:

  • Landing page: A static HTML page, built with Zola. CSS is based on TailwindCSS.
  • API backend: Written in Python, based on FastAPI framework.

Assume that you already install all dependencies.

  • To build landing page, run at the top-level folder:

    zola build
  • To run the backend, run at the top-level folder:

    uvicorn api.main:app
  • To serve the landing page and run the API backend at the same time, you can run this at the top-level folder:

    npx vercel dev
  • If you modify HTML code in landing, chance that you are adding new CSS classes and you don't see update. It is because we configure TailwindCSS to delete all unused CSS classes. You need to build TailwindCSS again, let it scan used classes again. Doing so by running this command in front-dev:

    yarn build-tailwind

Credit

Brought to you by Nguyễn Hồng Quân.

vn-open-api-provinces's People

Contributors

hongquan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vn-open-api-provinces's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.