- MySQL
- Golang
- NodeJS
- Clone this repository
git clone https://github.com/OkkyRoyDirgantara/fiber-vue.git
- Go to folder backend
cd fiber-app
- Install dependencies
go mod download
- Create database
mysql -u root -p
CREATE DATABASE fiber-vue;
- Copy .env.example to .env
cp .env.example .env
-
Edit .env file with your configuration
-
Run backend on port 3000
go run app.go
- Go to folder frontend
cd vue-app
- Install dependencies
npm install
- Copy .env.example to .env
cp .env.example .env
- Edit .env file with configuration url backend
VITE_URL_BACKEND=http://localhost:3000
- Run frontend
npm run serve