Skip to main content

Fiber Sveltekit Embed App

Github StackBlitz

image

This application is a full-stack project built using Sveltekit, Tailwind CSS, Fiber. It showcases the construction of a monolithic architecture for a full-stack application.

Run the Project

To run the project, follow these steps:

  1. Execute the following command to run all the necessary commands for building and running the application:
make all
  1. Once the build process is complete, you can start the application by running:
./app

Available Commands

The following commands are available to manage the project:

CommandDescription
infoInfo command. Displays the available commands and the purpose of the application.
go-buildBuilds the Golang project and creates an app file.
svelte-buildBuilds the SvelteKit project. It first installs the dependencies and then performs the project build.
allRuns both svelte-build and go-build commands sequentially.

Usage

To use this application, run the following command:

make <command>

API Routes

The Go Fiber application provides the following API routes:

RouteDescription
/*Serves static files from the specified directory (template.Dist()). If a file is not found, it serves index.html.

Go Dependencies

  • Go Modules: Go's built-in package manager used to manage dependencies for Go projects.
  • Fiber: A fast and minimalist web framework for Golang.

Npm Dependencies

  • SvelteKit: A JavaScript framework used to build modern web applications.
  • Tailwind CSS: A fast and customizable CSS styling library. Can be used in SvelteKit projects.
  • Skeleton UI: This is a fully featured UI Toolkit for building reactive interfaces quickly using Svelte and Tailwind.

Author: @ugurkorkmaz