Skip to content

Commit

Permalink
chore: customize chain of trust repository
Browse files Browse the repository at this point in the history
  • Loading branch information
eum602 committed May 30, 2023
1 parent 32e7cce commit 035ab15
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .example.env
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ TYPEORM_TYPE = postgres
TYPEORM_HOST = localhost
TYPEORM_USERNAME = postgres
TYPEORM_PASSWORD = postgres
TYPEORM_DATABASE = laccpass_verification_registry
TYPEORM_DATABASE = laccpass_chain_of_trust
TYPEORM_PORT = 5432
TYPEORM_SYNCHRONIZE = false
TYPEORM_LOGGING = true
Expand Down
2 changes: 1 addition & 1 deletion .example.env.test
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ TYPEORM_TYPE = postgres
TYPEORM_HOST = localhost
TYPEORM_USERNAME = postgres
TYPEORM_PASSWORD = postgres
TYPEORM_DATABASE = laccpass_verification_registry
TYPEORM_DATABASE = laccpass_chain_of_trust
TYPEORM_PORT = 5432
TYPEORM_SYNCHRONIZE = false
TYPEORM_LOGGING = true
Expand Down
1 change: 1 addition & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
FROM node:16.20.0-alpine
WORKDIR /app
COPY ./package.json .
COPY ./yarn.lock .
COPY tsconfig* ./
COPY ormconfig* ./
COPY src ./src
Expand Down
1 change: 1 addition & 0 deletions Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ FROM node:16.20.0-alpine AS production
WORKDIR /app
COPY --from=builder ./app/dist ./dist
COPY package* ./
COPY ./yarn.lock .
COPY tsconfig* ./
COPY prod-paths* ./
COPY ormconfig* ./
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# LACPass Verification Registry
# LACPass Chain Of Trust

## Getting Started

Expand Down
2 changes: 1 addition & 1 deletion docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ services:
ports:
- '${EXPOSED_CONTAINER_SERVER_PORT}:${PORT}'
restart: on-failure
container_name: laccpass-verification-registry
container_name: laccpass-chain-of-trust
depends_on:
- postgres
- redis
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ services:
ports:
- '${EXPOSED_CONTAINER_SERVER_PORT}:${PORT}'
restart: on-failure
container_name: laccpass-verification-registry
container_name: laccpass-chain-of-trust
depends_on:
- postgres
- redis
Expand Down
4 changes: 2 additions & 2 deletions docker_postgres_init.sql
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
CREATE USER docker WITH PASSWORD 'password' CREATEDB;

CREATE DATABASE laccpass_verification_registry_development
CREATE DATABASE laccpass_chain_of_trust_development
WITH OWNER = docker
CONNECTION LIMIT = -1;

CREATE DATABASE laccpass_verification_registry
CREATE DATABASE laccpass_chain_of_trust
WITH OWNER = docker
CONNECTION LIMIT = -1;

6 changes: 3 additions & 3 deletions docs/tech/configuration.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# LACPass Verification Registry
# LACPass Chain Of Trust

This project includes the boilerplate for a basic rest-api made in Node.JS with Express + Typescript.

Expand Down Expand Up @@ -104,13 +104,13 @@ The following commands will `build and run` a Docker image ready for production
#### Build Docker image

```
docker build -f Dockerfile.prod -t laccpass-key-manager .
docker build -f Dockerfile.prod -t laccpass-chain-of-trust .
```

#### Run docker image (you need to add .env file as param)

```
docker run --rm --env-file=.env.prod -p 3000:3000 --name node-api laccpass-key-manager
docker run --rm --env-file=.env.prod -p 3000:3000 --name node-api laccpass-chain-of-trust
```

### Fix issue at build docker image (dependencies to install bcrypt are not providede in alpine version of node)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "laccpass-verification-registry",
"name": "laccpass-chain-of-trust",
"version": "0.0.1",
"description": "Rest api for laccpass Verification Registry",
"description": "Rest api for laccpass Chain Of Trust built on top of Lacchain",
"license": "MIT",
"scripts": {
"dev": "yarn && nodemon --watch 'src/**/*.ts' --exec 'ENV=dev ts-node -r tsconfig-paths/register' src/server.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Log4TSProvider } from 'typescript-logging-log4ts-style';
config({ path: `.env.${process.env.ENV || 'dev'}` });

export const log4TSProvider = Log4TSProvider.createProvider(
'Log4ProviderVerificationRegistry',
'Log4ProviderChainOfTrust',
{
level: LogLevel.Debug,
groups: [
Expand Down

0 comments on commit 035ab15

Please sign in to comment.