GUI packages, examples, and documentation for building desktop applications with Go and web technologies. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1.5 KiB
Getting Started
This guide will help you set up and run the i18n project on your local machine.
Prerequisites
Before you begin, ensure you have the following installed:
Installation
-
Clone the repository:
git clone https://github.com/snider/i18n.git cd i18n -
Install Go dependencies:
go mod tidy -
Install Frontend dependencies:
Navigate to the
uidirectory and install the npm packages:cd ui npm install cd ..
Running the Application
The application consists of a Go backend and an Angular frontend. You can run them together using the serve command.
-
Build the Frontend:
First, you need to build the Angular application so that the Go server can serve the static files.
cd ui npm run build cd .. -
Start the Server:
Run the Go application using the
servecommand:go run ./cmd/i18n serveYou should see output indicating that the server is listening on port 8080:
Listening on :8080... -
Access the Application:
Open your web browser and navigate to
http://localhost:8080. You should see thei18n-elementapplication running.There is also a demo API endpoint available at
http://localhost:8080/api/v1/demo.