Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ahmadrosid/go-fullstack-svelte
https://github.com/ahmadrosid/go-fullstack-svelte
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ahmadrosid/go-fullstack-svelte
- Owner: ahmadrosid
- Created: 2024-07-06T20:10:09.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-19T02:52:24.000Z (5 months ago)
- Last Synced: 2024-10-16T18:07:35.273Z (2 months ago)
- Language: Svelte
- Size: 1.44 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go Fullstack Pocketbase with Svelte
![Demo](sample-app.png)
## Overview
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.
## Features
- Backend powered by Go and Pocketbase
- Frontend built with Svelte
- Seamless integration between frontend and backend
- Easy-to-use Makefile for common operations## Prerequisites
Before you begin, ensure you have the following installed:
- Go (1.16 or later)
- Node.js (14.x or later)
- npm (6.x or later)## Getting Started
1. Clone the repository:
```
git clone https://github.com/ahmadrosid/go-fullstack-svelte.git
cd go-fullstack-svelte
```2. Install frontend dependencies:
```
cd ui
npm install
```3. Build the frontend:
```
npm run build
cd ..
```4. Run the application:
```
go run main.go serve --publicDir=ui/dist
```5. Open your browser and navigate to `http://localhost:8090` (or the port specified in the console output).
## Development
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
```## Project Structure
- `/ui`: Contains the Svelte frontend application
- `main.go`: Entry point for the Go backend
- `Makefile`: Contains useful commands for building and running the project## Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
## License
This project is open source and available under the [MIT License](LICENSE).
## Acknowledgements
- [Pocketbase](https://pocketbase.io/)
- [Svelte](https://svelte.dev/)
- [Go](https://golang.org/)