Giter VIP home page Giter VIP logo

asi-karnesi's Introduction

asi-karnesi

International vaccine passport that can be easily ported

Backend

Flask: https://flask.palletsprojects.com/en/1.1.x/quickstart/

First run:

Install flask, sqlite, slqalchemy

Local development:

cd backend
./run.sh

It should be accessible it at http://127.0.0.1:5000/

You can change the code and it'll be live instantly. You don't need to start it again.

Database

SQLite is used for database. All the contect is inside database.db.

SQLAlchemy: https://docs.sqlalchemy.org/en/13/orm/tutorial.html

If you change the attributes of an already existing table, you should delete database.db and we should start over. It'll be created on it's own and you don't have to create it again, but we'll lose all the existing data. We should start using Alembic (https://alembic.sqlalchemy.org/en/latest/index.html) to migrate properly.

Development

git checkout -b your-branch

# ... (change code)
git add .
git commit -m "commit description"

git fetch # fetch updates from remote
git rebase origin/master # use rebase for better commit history
git push

Testing

Check an existing user with user id.

http://127.0.0.1:5000/user?id=2

asi-karnesi's People

Contributors

ayberkuslu avatar erdemkiraz avatar

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.