Skip to content

CSR-LC/csr-root

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csr-root


This repository contains all necessary modules to start csr locally.

Before working download necessary tools:

Clone repository:

git clone git@github.com:CSR-LC/csr-root.git

Initialise and update submodules:

git submodule update --init

Now you have all repository updated and ready to work.

After you need to select branch to work and checkout. There are two-way to do it:

First

Select branch in each repo:

git submodule set-branch --branch <your branch> <repo path>

In the end checkout and update all submodules to selected branch:

git submodule update --remote

Now you have repository with selected updated branch. You can use previous command to get updates from remote.

Second

Enter to each directory add checkout to branch:

cd <repo_path>
git checkout <branch>
git pull
cd ..

In the future, you can use next command to update all repositories:

git submodule foreach git pull


Start application

Check files . It should contain:

csr-be/config.json

  "db": {
    "host": "csr-db",
    "port": "5432",
    "user": "csr",
    "database": "csr",
    "showSql": false
  },

csr-fe/src/environments/environment.ts

export const environment = {
  production: false,
  apiUrl: 'http://localhost:8080/api/',
};

csr-fe/src/proxy.conf.json

"/api/*": {
      "target": "http://localhost:8080/api/",
      "secure": true,
      "changeOrigin": true,
      "logLevel": "debug"

Build images:

docker compose build --no-cache

if you want to rebuild one service add it name in the end of previous command.

Start application:

docker compoce up

add -d after up if to start app in detached mode.

Stop application:

docker compose stop

Delete containers:

docker compoose down

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors