Giter VIP home page Giter VIP logo

personal_api's Introduction

Personal API

Make a secured web API that stores and serves up your data! The current schema is oriented towards powering freelancers' websites.

Installation

Fork the project, then do pipenv install.

Set three config vars in your .bashrc etc.:

PERSONAL_API_USERNAME
PERSONAL_API_PASS
PERSONAL_API_SQLALCHEMY_DATABASE_URL

PERSONAL_API_SQLALCHEMY_DATABASE_URL should be for a postgres instance somewhere, in the format

postgresql://{username}:{password}@{host}:{port}/{db_name}

Using Locally

Start the server with uvicorn app.main:app, then create, get, delete, and update records at will.

Deployment

See "Using Locally", but point it at whatever web server you're using.

Tables

As of today the available endpoints are

/availability
    id: int
    when: datetime
    available: bool
    next_available: datetime

    methods are GET and POST

/resume (versioned)
    id: int
    when: datetime
    url: str

    methods are GET and POST

/posts
    id: int
    when: datetime
    title: str
    description: str
    body: str
    custom_url: str (optional)
    syndicate: bool (optional)

    methods are GET, POST, PATCH, and DELETE

/projects
    id: int
    when: datetime
    title: str
    description: str
    link: str (optional)

Dependencies

This project relies on the excellent work of SQLALchemy, Pydantic, FastAPI, Pytest, and Starlette

Why?

It started as an excuse to get acquainted with FastAPI, as well as to make a front-end first (JAMstack?) personal site.

personal_api's People

Contributors

zevaverbach avatar

Watchers

 avatar  avatar

personal_api'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.