Code Monkey home page Code Monkey logo

fast-api's Introduction

About The Project

FastAPI backend for INSTALL

Getting Started

Prerequisites

You'll need to have Docker installed on your machine to run this in the containerized version. You can check out how to do that in the Docker Docs.

Installation

  1. Clone the repo for local development
    git clone https://github.com/cesartheroman/fast-api.git
    Always ensure you local repo is up to date by running:
    git pull origin main
  2. Edit the .env.sample file and change to .env and fill in with appropriate env vars. (Optional if not contributing code within repo)
  3. Pull and run the container image (first time)
    docker compose up --build # will build image and container
  4. You can then open up a terminal and run docker ps to make sure the container is running or just open up the Docker Desktop. You should see one container called fast-api-server.
  5. If you edit configs or make a migration where you would like to rebuild the Docker Image you can simply follow these commands:
    docker compose down -v    # will tear down the container and remove the associated volumes
    docker compose up --build # will build up image and run it as a container
    For regular composing up and down you can simply do:
    docker compose up -d
    docker compose down
  6. You might come up against an error when running docker compose relating to not having permission, I'm not exactly sure why that is but all you need to do is run the command again but with sudo: sudo docker compose up etc.

Contributing

  1. Create your Feature Branch (git checkout -b username/AmazingFeature)
  2. Add you Changes (git add <changed-files>)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin username/AmazingFeature)
  5. Open a Pull Request

fast-api's People

Contributors

cesartheroman avatar bargisoft avatar chadable 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.