Skip to content

This is the webapp used to demonstrate the cloud infra project here: https://github.com/aravind33b/tf-gcp-infra

Notifications You must be signed in to change notification settings

aravind33b/webapp

Repository files navigation

webapp

STEPS TO REPRODUCE THE PROJECT

Installations

Go (version 1.16 or newer) installed on your machine. Download Go.

Database (PostgreSQL) installed and running on your machine. The application will bootstrap the database schema automatically upon startup using the GORM.

Steps to implement the project

Create an environment variable(will be automatically configured in future versions)

    Configure the following environment variables in a .env file or in your environment before running the application:

    DB_HOST

    DB_USER

    DB_PASSWORD

    DB_NAME (e.g., mywebappdb) - Ensure this database exists; the application will bootstrap or migrate the schema automatically.

    JWT_SECRET_KEY - Used for signing JWT tokens.

    Clone the repository: git clone https://github.com/yourusername/yourrepositoryname.git cd webapp (Ensure that you have created the env file as it would have been ignored by git)

Install the Go dependencies: go mod tidy

Build the application: go build

Run the application: go run main.go

For testing purposes: https://app.swaggerhub.com/apis-docs/csye6225-webapp/cloud-native-webapp/2024.spring.02

About

This is the webapp used to demonstrate the cloud infra project here: https://github.com/aravind33b/tf-gcp-infra

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published