GithubHelp home page GithubHelp logo

to-n-y / todo-api Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 18 KB

Simple Rest Api written in Python/Flask using peewee

Python 90.43% Dockerfile 7.44% Makefile 2.13%
docker postman python sqlite3 peewee-orm flask

todo-api's Introduction

REST API

In this project you will find a Dockerfile and docker-compose.yml. The last file specified starts the API container for the ToDo list

Application Prerequisites

  • Docker

P.S. You can install Docker Toolbox if you have an older Windows release than Windows 10.

How to run

  1. clone this repo git clone https://github.com/To-n-y/todo-api.git [<dir_name>]
  2. Go to the folder with the command cd <dir_name>
  3. Make .env file:
    • make a copy of the template of .env file cp .env.template .env
    • assign actual values to all fields.
  4. To mount the database, go to Docker and then do: Settings -> Resources -> FileSharing. Add db folder and push Apply & Restart
  5. Run containers docker-compose up or make run_container;
  6. When the project is running, go to localhost:80 and check if you see 'Not Found'. If you have installed Docker Toolbox, go to http://192.168.100.14:80
  7. Go to localhost:80/toDoList or check the postman collection.

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.