Coder Social home page Coder Social logo

bd-demo-api's Introduction

Bases de Dados - Trabalho Prático

The code and resources available in this repository are to be used only in the scope of the BD 2022 course.

The main purpose of this repository is to provide examples on how to do the the initial setup of the database-centric REST API that must be developed for the assignment. In particular, the projects available are totally automated to be easily deployed in third-party setups with the help of a tool (in this case docker or maven, depending on the project). A basic template for native execution in Python is also made available.

The contents of this repository do not replace the proper reading of the assignment description.

Overview of the Contents

  • PostgreSQL - Database ready to run in a docker container with or without the help of the docker-compose tool;
  • Python - Source code of web application template in python for both native execution and with docker container configured. Ready to run in docker-compose with PostgreSQL
    • app/ folder is mounted to allow developing with container running
    • native/ template for native execution
  • Java - Source code of web application template in java/spark with docker container configured. Ready to run in docker-compose with PostgreSQL or in your favorite IDE.
  • postman - A collection of requests exported of postman tool;

Requirements

To execute this project it is required to have installed:

  • docker
  • docker-compose
  • maven only if you opt for the java option

Demo Python REST API

To start this demo with run the script (e.g. sh docker-compose-python-psql.sh) to have both the server and the database running. This script uses docker-compose and follows the configurations available in docker-compose-python-psql.yml).

The folder app is mapped into the container. You can modify the contents and the server will update the sources without requiring to rebuild or restart the container.

Demo Java REST API

To start this demo with run the script (e.g. sh docker-compose-java-psql.sh) to have both the server and the database running.

The demo available here uses Spring Boot, which is one of the most widely used solutions to develop REST APIs and micro-services. "Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run." It is very easy to build and automate its deployment either with maven or Docker.

Authors

bd-demo-api's People

Contributors

nmsa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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