GithubHelp home page GithubHelp logo

izemaghilas / grpc-task-manager Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mohammadbnei/grpc-task-manager

0.0 0.0 0.0 1016 KB

JavaScript 0.68% TypeScript 95.61% CSS 0.01% HTML 0.06% Dockerfile 0.17% Svelte 3.47%

grpc-task-manager's Introduction

gRPC Task Manager

Installation

Create the docker network

docker network create grpc-task-manager_default

Launch the databases and tracing tools

docker compose up -d mariadb mongo tracing

Run the prisma migration

User-api

Set the .env :

MYSQL_URL="mysql://root:passwd@localhost:3306/user"
insecure=true
NODE_ENV=development
JAEGER_URL="http://localhost:14268/api/traces"
HEALTH_PORT=3001
AUTH_API_URL="localhost:4003"
npx prisma migrate dev

Auth-api

Set the .env :

MYSQL_URL="mysql://root:passwd@localhost:3306/auth"
PORT=4003
USER_API_URL="localhost:4002"
JWT_SECRET="super-secret"
insecure=true
JAEGER_URL="http://localhost:14268/api/traces"
ETCD_URL="http://localhost:8000"
HEALTH_PORT=3002
npx prisma migrate dev

SSL

Install mkcert

https://github.com/FiloSottile/mkcert

Certificates and rootCA

mkcert user-api localhost
mkcert auth-api localhost
mkcert task-api localhost
mkcert front localhost
cp $(mkcert -CAROOT)/rootCA.pem .

Remove the +1 part of the name of the certificates

Front

example .env

ROOT_CA=../local/certs/rootCA.pem
FRONT_KEY=../local/certs/front-key.pem
FRONT_CERT=../local/certs/front.pem
secure=false
TASK_API_URL=localhost:4001
AUTH_API_URL=localhost:4002
USER_API_URL=localhost:4000

Start the servers

docker compose up -d

grpc-task-manager's People

Contributors

mohammadbnei avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.