With Go.gov.sg, citizens are safe in the knowledge that the links are official and safe. Any public officer can log in with their government emails an

opengovsg / GoGovSG

submited by
Style Pass
2021-06-11 15:00:02

With Go.gov.sg, citizens are safe in the knowledge that the links are official and safe. Any public officer can log in with their government emails and immediately create short links with the official gov.sg domain.

Docker-compose will spin up a postgresql database and redis container to be connected to the backend server. Once the setup is complete, the local version of GoGovSG can be accessed on your browser via localhost:3000. Note that 3000 is the port number that the webpack dev server listens on; the backend server actually listens on port 8080 instead.

Because redirects are served directly from the backend, shortlinks can be accessed via localhost:3000/shortlink, but that is really being proxied to localhost:8080/shortlink. Also, given that GoGovSG will attempt to send emails directly from your computer when running on localhost, there is a chance that the email might land in spam or not be sent entirely. To mitigate this, we have set the one-time password for all log-in attempts on localhost to be 111111.

Much of this step will involve setting up key infrastructure components since we do not have docker-compose to do that for us. On top of running the server, GoGovSG minimally requires the following infrastructure to be available:

Leave a Comment
Related Posts