HUB
Sign inSign up

timesink/ts-auth-client-react

By timesink

•Updated about 6 years ago

Image
0

220

timesink/ts-auth-client-react repository overview

⁠GraphQL-JWT-GUI-Demo

The GUI to my small demo project, based upon the video tutorial by "Stack That Code" on YouTube:

GraphQL, Express & Typescript

You can find my implementation of the server-api side of things in my other repository⁠.

⁠Used (Main-)technologies

⁠Additional used packages/technologies

Divergent from the video series, a few more/different technologies were added:

⁠How to make the React App configurable in the container

I used the technique(mainly the env.sh bash script) described here⁠ to generate a js-enviroment file from the .env file within the project. That file (which lives in the head section of the index.html) then checks to see if the container received one or more of the parameters at startup and, if so, uses the parameters instead of the standard ones.

⁠How to use/install

⁠Docker
  • Run docker run -e GRAPHQL_HOST=<ip-of-host-of-graphql-api> -p <host-port>:80 timesink/ts-auth-client-react:<tag-you-want>
  • The project should now be listening on port you set
⁠From the project
  • Run yarn run start to start the application (yarn run start:rebuild if the env-file changed)
  • The project should now be listening on the React-App Port (standard: 3000)

⁠Available enviroment variables

Click to expand!
⁠Variables and their standard values
  • GRAPHQL_HOST=localhost
  • GRAPHQL_PORT=4000
  • GRAPHQL_ROUTE=/graphql

Tag summary

Content type

Image

Digest

Size

10 MB

Last updated

about 6 years ago

docker pull timesink/ts-auth-client-react