A gRPC server implementation in node and typescript.
To run locally:
This option does not provide support for gRPC-Web.
Adjust host in values/globals.ts
accordingly.
- Run
npm install
- Run
npm run dev
This option provides support for gRPC-Web by using envoy as a proxy server.
Adjust host in values/globals.ts
accordingly.
Install docker & docker-compose:
- For mac: Follow the instructions at: https://docs.docker.com/desktop/install/mac-install/
- For windows, follow the instructions at: https://docs.docker.com/desktop/install/windows-install/
- For linux, follow the instructions at: https://docs.docker.com/desktop/install/linux-install/
Ensure that you have no other applications running on the ports: 8080 and 5000 After you have your docker service running:
- Clone this repository
git clone https://github.com/TylerMutai/grpc-server-example.git
- Navigate into the directory containing this repo
cd grpc-server-example
- Run
docker-compose up --build
The server should now be accessible at: http://localhost:8080/
The default predefined user accounts for login are:
[
{
"username":"admin",
"password":"admin"
},
{
"username":"staff",
"password":"staff"
}
]