GithubHelp home page GithubHelp logo

donald298 / phone-crud-backend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from balb0x/phone-crud-backend

0.0 0.0 0.0 41 KB

Simple python backend with MongoDB database to store phone and brands records

License: MIT License

Python 98.88% Dockerfile 1.12%

phone-crud-backend's Introduction

Phone CRUD Backend License: MIT

This repository contains the source code of the Flask App which exposes a REST Api with the ability to view/create/modify/delete entries of phones and phone brands.

Built for python3, it connects to a database using the MongoAlchemy package, which adds support for MongoDB on Flask.

All the project information has been put together in the project Wiki

Deployment

The project has been configured to run in a docker container. To build the image, first execute this line on the cmd:

docker-compose build

Then, to run the container:

docker-compose up

The docker container builds the project and makes a MongoDB image so everything is integrated within the container.

Build

Also, if you want to build the application yourself, you can install the python packages and run it:

python3 -m pip install -r requirements.txt
python3 app/main.py

Usage

The backend exposes a simple API rest on port 5000, to interact with the api you can use Postman and import the provided collection file: phone-crud-backend.postman_collection. Refer to the project Wiki/Endpoints for a more detailed information of the api.

When started by the first time, the database is empty, there is a part on the code which make an initial insert of the documents. The initial data is found on the app/initial_data.py.

The default credentials for the backend are:

admin:password (phone and brand privileges)
operator:password (phone privileges)

License

Phone CRUD Backend is MIT licensed

phone-crud-backend's People

Contributors

balb0x 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.