Skip to content

A monorepo app to manage a boutique Restaurant, with a go backend, react-TS frontend and CI/CD(WIP)

Notifications You must be signed in to change notification settings

SahilMahale/OishiDes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OishiDes (oh-ee-shee des)

A basic booking app with Go as backend(no AUTH/ no Update) and vite/react as front end(WIP)
mainly to practice DB connection with gorm, implement auth from scratch and to learn vite

Development

Dependencies

Starting database for dev

Start the docker container and grab the container IP from the commands below

docker run -d --name mysql-dev-server  -e MYSQL_ROOT_PASSWORD=password123 bitnami/mysql:latest
docker inspect <container-ID>

Backend ENV variables

export MYSQL_USERNAME=<dbuser>
export MYSQL_PASSWORD=<dbpass>
export MYSQL_IP=<dbIP:port>
export APP_AUTH=<path to secrets folder conataining generated keys>

Starting backend for dev

cd oishi-server
go mod tidy
go run cmd/main.go

Frontend ENV variables

export API_GATEWAY=<IP where backend is hosted >
export API_SERVER_HOST=<IP where backend is hosted while deploying in a container>
export DEPLOY_ENV=<DEV||PROD>

Starting frontend for dev

cd oishi-ui 
pnpm install
pnpm dev

Generating RSA 256 private and public keys

cd ./secret
openssl genrsa -out private_key.pem 2048
openssl rsa -in test_key.pem -outform PEM -pubout -out test_key.pem.pub 

About

A monorepo app to manage a boutique Restaurant, with a go backend, react-TS frontend and CI/CD(WIP)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published