local setup

GIT NODEJS GOLANG ETCD

Download front-end source code from GitHub.

bash
1
gh repo clone alpha-omega-corp/webapp ~/WebstormProjects/webapp

Install required packages and start development server.

bash
1
2
cd ~/WebstormProjects/webapp
npm i && npm run dev

Download back-end source code from GitHub, requires gateway and user servers.

bash
1
2
gh repo clone alpha-omega-corp/api-gateway ~/GolandProjects/api-gateway
gh repo clone alpha-omega-corp/user-svc ~/GolandProjects/user-svc

Start the configuration server.

bash
1
etcd

Install gateway dependencies and add the config.

bash
1
2
3
cd ~/GolandProjects/api-gateway && go mod tidy
etcdctl put env_gateway < .env
etcdctl put host_gateway < .host

Install user dependencies and add the config.

bash
1
2
3
4
cd ~/GolandProjects/user-svc && go mod tidy
etcdctl put env_user < .env
etcdctl put host_user < .host
etcdctl put config_user < .config

Create the user database.

bash
1
2
3
make db_create
make db_init
make db_reset

Start the gateway and user server.

bash
1
make server