Giter Site home page Giter Site logo

barsikus007 / fastapi-react-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.7 MB

My standard template for fullstack projects

Dockerfile 9.98% Python 70.20% HTML 0.99% CSS 4.83% Mako 1.37% TypeScript 12.63%
async docker python sqlalchemy typescript

fastapi-react-boilerplate's Introduction

fasta-react-boilerplate

Features

  • boilerplate
  • ???
  • PROFIT
  • (and cute http.cat error pages)

Installation

Install docker

On Windows

Windows 11 or with winget installed
wsl --install -d Ubuntu
winget install Docker.DockerDesktop -h
Below Windows 11

Installer

On Linux

Convinient script

# install docker
curl -sSL https://get.docker.com | sh
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker; exit

On MacOS

Installer

Arm issues resolution

Due to possible issues with several packages, which haven't builds for linux aarch64, you can use buildx

COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 DOCKER_DEFAULT_PLATFORM=linux/amd64 docker-compose up -d --build {issued-service}
docker-compose up -d --build {other-services}

Launch app

Copy .env.example to .env and change settings

Development mode

docker compose up -d --build

Production mode

docker compose -f compose.prod.yaml up -d --build

Untemplating

  • s/fastapi-react-boilerplate/your-project-name/g

FastAPI React Boilerplate TODO

frontend

backend

devops

  • tasks for database backup and restore
  • file serving example
    • nginx serve static files
    • max filesize deps for FastAPI
    • nginx client_max_body_size 100M;
    • GUID in env or another workaround for correct file rights (container user not root) (migrations for example)
  • update && fix compose.debug.yaml
    • backend
    • frontend
  • docker secrets
  • prod related
  • nginx to traefik ?
    • https is easier in traefik

other

fastapi-react-boilerplate's People

Contributors

barsikus007 avatar

Stargazers

 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.