Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

FastAPI / SQLAlchemy based book server #1

Closed

Description

@bnmnetp

This is a start on a migration of the book server to FastAPI - Lets use this Issue to discuss.

I want to polish up this first bit to set the stage for the rest of what needs to come. So getting this as "right" as we can is the goal.

You should be able to run this yourself with the following:

  1. clone this repo
  2. Install poetry
  3. run poetry install to install all of the dependencies (you can either make your own virtualenv or let Poetry)
  4. run the command uvicorn app.main:app --reload
  5. Navigate to http://localhost:8000/docs

You can then exercise the API call for logger/bookevent using the autogenerated documentation.

Next up getting a unittest set up for this first endpoint.

Tagging @bjones1

Activity

  1. bnmnetp commented on Apr 23, 2021

    @bnmnetp
    MemberAuthor

    @bjones1

    I think this would be a great time for us to take a look at the bookserver together and see how we feel about organization, complexity, authentication, etc.

    As of today, if you have an entry for a user in auth_user in a database -- I continue to test with sqllite -- and an entry for a course, AND you have built a book with the bookserver branch of the components. you can login, view the book and page views are all added to the useinfo table.

    I am to the point where I think I can really start chopping wood on porting the ajax.py endpoints and getting test coverage up.

    Authentication and my busyness with other tasks big roadblock for me, but I think that I'm through that roadblock and we may be within a couple of weeks of having the server at a really great point.

    Happy to schedule some time to zoom and walk through things.

  2. bjones1 commented on Apr 24, 2021

    @bjones1
    Collaborator

    Fantastic! Let me play with it a bit then schedule a time to chat. I'm very excited!

  3. bjones1 commented on Apr 25, 2021

    @bjones1
    Collaborator

    See my thoughts in #8.

  4. locked and limited conversation to collaborators on Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions