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
- Backend
- Go 1.20.5 or higher
- fiber http server
- gorm db ORM
- Frontend
- Typescript v5 or higher
- pnpm package manager
- vite bundler/dev server
- react
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>
export MYSQL_USERNAME=<dbuser>
export MYSQL_PASSWORD=<dbpass>
export MYSQL_IP=<dbIP:port>
export APP_AUTH=<path to secrets folder conataining generated keys>
cd oishi-server
go mod tidy
go run cmd/main.go
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>
cd oishi-ui
pnpm install
pnpm dev
cd ./secret
openssl genrsa -out private_key.pem 2048
openssl rsa -in test_key.pem -outform PEM -pubout -out test_key.pem.pub