Skip to content

chula-overflow/chula-overflow-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0107dd6 · Oct 28, 2022
Oct 23, 2022
Oct 19, 2022
Oct 28, 2022
Oct 24, 2022
Oct 27, 2022
Oct 19, 2022
Oct 27, 2022
Oct 25, 2022
Oct 27, 2022
Oct 19, 2022
Oct 21, 2022
Oct 26, 2022
Oct 27, 2022
Oct 19, 2022
Oct 22, 2022
Oct 22, 2022
Oct 19, 2022

Repository files navigation

Install Dependency

nx run-many --target=install

Run

Please check Prerequisite before runing

nx run-many --target=serve

Docker lazy script

git clone --sparse https://github.com/chula-overflow/chula-overflow-backend
cd chula-overflow-backend
cp .env.example .env
docker-compose --env-file .env up -d

TODO

  • code linter / format
    • prettier / editorconfig
  • Automated test

prerequisite

Protoc-gen-go-grpc

go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2

Nx cli

npm i -g nx

Docker

Docker compose

docker compose --env-file .env up

Building image

Since each service depends on apps/proto directory, images need to be build from project root

docker build <service>:<tag> -f apps/<service>/Dockerfile .

Note

Please don't mind that auth take like 5 minutes compile time.

Env

.env is supposed to use for containerization purpose. It will not automatically load into any service. please load it yourself.