Skip to content

kiyotd/sample-flask-rest-mongo-crud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Description

  • MongoDB へと CRUD を行う REST API を Flask で実装したサンプルプロジェクトです。

Requirement

REST API endpoint

method path -
GET /users 全ユーザーの情報を取得
POST /users ユーザーの登録
PATCH /users/ユーザーID ユーザーの情報を更新
DELETE /users/ユーザーID ユーザーを削除

Getting Started

Clone

git clone https://github.com/kiyotd/sample-flask-rest-mongo-crud.git

Creating a virtual environment and installing modules

cd flask-mongo-rest-crud
pipenv install

Runs the app

pipenv run python server.py

Postman のインストールを行い、API のエンドポイントにリクエストを送信して動作を確認する。

When connecting to the MongoDB Atlas

  • server.py のコメントアウト参照

Licence

The MIT License

Author

kiyotd
web designer, front-end engineer

About

REST API / CRUD / Flask + MongoDB

Resources

Stars

Watchers

Forks

Languages