This project is template of a fullstack application built with Go, Pocketbase, and Svelte. It showcases how to integrate these technologies to create a modern, efficient web application.
Before you begin, ensure you have the following installed:
Clone the repository:
git clone https://github.com/ahmadrosid/go-fullstack-svelte.git
cd go-fullstack-svelte
Install frontend dependencies:
cd ui
npm install
Build the frontend:
npm run build
cd ..
Run the application:
go run main.go serve --publicDir=ui/dist
Open your browser and navigate to http://localhost:8090 (or the port specified in the console output).
For development, you can use the following commands:
To run the backend:
go run main.go serve
To run the frontend in development mode (in the ui directory):
npm run dev
/ui: Contains the Svelte frontend applicationmain.go: Entry point for the Go backendMakefile: Contains useful commands for building and running the projectContributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.