├── .gitmodules ├── README.md ├── quickStart.sh └── readme.md /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "soci-frontend"] 2 | path = soci-frontend 3 | url = git@github.com:jjcm/soci-frontend.git 4 | [submodule "soci-backend"] 5 | path = soci-backend 6 | url = git@github.com:jjcm/soci-backend.git 7 | [submodule "soci-avatar-cdn"] 8 | path = soci-avatar-cdn 9 | url = git@github.com:jjcm/soci-avatar-cdn.git 10 | [submodule "soci-image-cdn"] 11 | path = soci-image-cdn 12 | url = git@github.com:jjcm/soci-image-cdn.git 13 | [submodule "soci-video-cdn"] 14 | path = soci-video-cdn 15 | url = git@github.com:jjcm/soci-video-cdn.git 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Getting Started 2 | 3 | First, clone this repo. This is the master repo that holds all of the microservices. To do this issue this command: 4 | 5 | ```git clone --recursive git@github.com:jjcm/soci.git``` 6 | 7 | Next you'll want to update the repos: 8 | 9 | ```git submodule update --recursive --remote``` 10 | 11 | Next you'll want to set up your DB. Ensure that you have mysql or mariadb running, with connection details filled into the `localrun.sh` files or `config.json` files that are in each of the repos. 12 | 13 | After that, you'll want to start the servers: 14 | 15 | ```./quickstart.sh``` 16 | 17 | This will open a GNU Screen session with each microservice running in a different screen window. To switch between screen windows use this key sequence: 18 | 19 | ```ctrl+a -> n``` 20 | -------------------------------------------------------------------------------- /quickStart.sh: -------------------------------------------------------------------------------- 1 | screen -AdmS soci -t frontend bash -c "bash --init-file <(echo 'cd soci-frontend; npm i; npm start;')" 2 | screen -S soci -X screen -t api bash -c "bash --init-file <(echo 'cd soci-backend; ./localRun.sh')" 3 | screen -S soci -X screen -t avatar-cdn bash -c "bash --init-file <(echo 'cd soci-avatar-cdn; go build -o avatar-cdn main.go; ./avatar-cdn')" 4 | screen -S soci -X screen -t image-cdn bash -c "bash --init-file <(echo 'cd soci-image-cdn; go build -o image-cdn main.go; ./image-cdn')" 5 | screen -S soci -X screen -t video-cdn bash -c "bash --init-file <(echo 'cd soci-video-cdn; go build -o video-cdn main.go; ./video-cdn')" 6 | screen -rD soci 7 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # Getting Started 2 | 3 | First, clone this repo. This is the master repo that holds all of the microservices. To do this issue this command: 4 | 5 | ```git clone --recursive git@github.com:jjcm/soci.git``` 6 | 7 | Next you'll want to update the repos: 8 | 9 | ```git submodule update --recursive --remote``` 10 | 11 | Next you'll want to set up your DB. Ensure that you have mysql or mariadb running, with connection details filled into the `localrun.sh` files or `config.json` files that are in each of the repos. 12 | 13 | After that, you'll want to start the servers: 14 | 15 | ```./quickstart.sh``` 16 | 17 | This will open a GNU Screen session with each microservice running in a different screen window. To switch between screen windows use this key sequence: 18 | 19 | ```ctrl+a -> n``` 20 | --------------------------------------------------------------------------------