Coder Social home page Coder Social logo

g4ze / byoc Goto Github PK

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

container deployment platform

Home Page: https://g4ze.github.io/byoc/

Shell 0.03% Go 60.26% CSS 1.52% TypeScript 37.25% JavaScript 0.54% Dockerfile 0.40%
aws aws-ecs-fargate aws-sdk-go-v2 golang nextjs postgresql

byoc's Introduction

This software enables you to deploy your containers with a single click.

Checkout all docs and implementation here

Read on LinkedIn here

Read the tech blog here

Database setup etc

in the pkg/database dir

setup the db docker run --name byoc_postgres -e POSTGRES_PASSWORD=Welcome -p 5432:5432 postgres:latest First time cmd: [run db push to synchronize your schema with your database. It will also create the database if it doesn't exist.] go run github.com/steebchen/prisma-client-go db push

Everytime model is changed, migrate your database and re-generate your prisma code: go run github.com/steebchen/prisma-client-go migrate dev --name add_comment_model

Access the databse using: docker exec -it psql-dev psql -U postgres -d postgres

mkdir data docker run -e POSTGRES_PASSWORD=mysecretpassword -p 5432:5432 -v ./data:/var/lib/postgresql/data --name byoc-postgres -d postgres

docker run --name byoc_postgres \
  -e POSTGRES_PASSWORD=Welcome \
  -p 5432:5432 \
  -v byoc_pg:/var/lib/postgresql/data \
  postgres:latest

connect to DBpsql -h localhost -U postgres

byoc's People

Contributors

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