Skip to content

Caresle-Archive/flask-mongo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Flask Mongo

A flask + mongodb api.

How to run

  • The project suppose to use a local version of mongodb
  1. Create a virtual env
# Windows
python -m venv venv
  1. Activate the virtual env
# Windows
venv\Scripts\activate
  1. Install flask
pip install Flask
  1. Run mongodb in another terminal
mongod
  1. Execute flask
flask run

Endpoints

GET /games

Show the list of all the games

POST /games

Create a new game like the example below

{
	"name": "game name"
}

PUT /games/:id

Update the name of the game. Example below:

{
	"name": "New game name"
}

DELETE /games/:id

Delete the given element

Releases

No releases published

Packages

No packages published

Languages