GithubHelp home page GithubHelp logo

fastapi-entrytask-template's Introduction

Our Blog

我們ㄉ部落格(後端小作業)

You will learn

  1. git

    • Download project
      git clone https://github.com/wsa-2002/Fastapi-EntryTask-Template.git
      
    • Create a new branch
      git branch my-branch-name
      
    • Switch to the new branch
      git checkout my-branch-name
      

    After Developing

    • Add files to staging
      git add .
      
    • Commit with message
      git commit -m "commit msg"
      
    • Push to gitlab
      git push --set-upstream origin my-branch-name
      
  2. conda env

    • Create a new environment
      conda create --name my-blog python=3.10
      
    • Activate environment
      conda activate my-blog
      
    • Install dependencies
      pip install -r requirements.txt
      
  3. Postman

  4. fastapi framework

    • Run app
      uvicorn app:app --reload
      
    • Call API on postman
      localhost:8000/hello-world
      
    • Call API with parameters
      localhost:8000/hello-people?name=pdogs
      
  5. BREAD api

    • Browse: return list of objects
    • Read: return single object
    • Edit: edit single object
    • Add: create new object
    • Delete: delete single object
  6. SQL

Requirements

  1. Browse posts
  2. Read single post
  3. Add post
  4. Edit posts
  5. Delete posts
  6. Comment on posts

Tech stack

  • python>=3.8
  • fastapi
  • postgresql

Recommended phase

  1. Design your database schema
  2. Design your API spec
  3. Init your backend project
  4. Implement features

Deliverables

  • A GitLab project with a runnable schema + runnable backend code
  • A README.md document describing how to set up + start your backend service

fastapi-entrytask-template's People

Contributors

wsa-2002 avatar

Watchers

 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.