Skip to content

Learning how to use Flask to create a RESTful API

Notifications You must be signed in to change notification settings

avnerduc/REST_Flask

Repository files navigation

About

This is a project for practicing Cloud development. We implement a simple Flask server for creating and getting Dishes and Meals

Usage instructions

Prerequisits

  • Have Docker installed

Running the server

  • Use the Dockerfile to create an image, e.g. docker build -t flask .
  • Use docker run --rm -p 8000:8000 flask to run a container

Using the server

  • You can see the test.py with a usage example with some tests
  • It is suggested you create a virtual environment for running the test
  • You will need to have the requests library installed

Running the server with a different port

  • Build with specifying the port: docker build -t flask . --build-arg port=3000
  • Run with specified port: docker run --rm -p 8000:3000 flask

About

Learning how to use Flask to create a RESTful API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published