Giter VIP home page Giter VIP logo

api-aws-docker's Introduction

Infrastructure

  • Database: one Postgresql database is running on a RDS instance on AWS.

  • Drive: we have one S3 bucket to store the sql file.

  • Application: we created a reverse proxy with Nginx and an API with FastApi, they are both running on a virtual machine one an EC2 instance on AWS.

Database initialization storage

In order to store our sql initialization file, we created an Amazon S3 bucket. Then we just had to drag&drop the file on the S3 interface.

Database creation

To create the database, we've decided to run a Postgres database on Amazon RDS. The first step was to connect to an EC2 instance via SSH protocol in order to have an Ubuntu terminal to run docker.

Once we were connected to the VM, we ran a Postgres image in docker to have a way to use psql. Then we copy our SQL init file inside our VM, to copy it inside our docker container.

Once we got our file, we were able to connect with psql to our database server instance and initilialize it.

API Access

You can access the API by following this link.

You will land on the documentation page.

Api Documentation

Endpoints

  • Get all members - link

Members

  • Get member by name - e.g. "Smith" link

Member by name

  • Get all facilities - link

Facilities

  • Get all bookings - link

Bookings


Feel free to star this repository or fork it if you find it usefull.
Cheers!

api-aws-docker's People

Stargazers

 avatar  avatar

Watchers

 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.