Giter VIP home page Giter VIP logo

fullstack-go-vue's Introduction

Fullstack App Made with Go + Vue

What Is This?

This is a simple CRUD app. Under the hood, it runs on Go as backend, Vue as frontend, and PostgreSQL as database.

Prerequisites

  • Go 1.18 or above
  • Vue 3+
  • PostgreSQL 9 or above
  • NPM 8 or above

Quick Start Guide

  • General

    1. Clone the repository from https://github.com/yogski/fullstack-go-vue.
    2. Run cd /fullstack-go-vue.
    3. The repository contains 2 modules: backend and frontend. For each module, follow the setup below.
  • Backend

    1. Run cd/backend.
    2. To set up env file, run make env. If make command is not available (like in Windows command), simply copy .env.sample then paste in same directory, then rename it to .env
    3. Fill required values in .env. It is recommended to leave APP_PORT as 5000 for development purpose.
    4. For first time setup, run go run main.go --migration. The --migration flag tells the app to run migration setup only (e.g create necessary PostgreSQL tables and insert seed data from CSV files in /backend/connections).
    5. Run go run main.go to start backend server.
  • Frontend

    1. Run cd /frontend
    2. Run npm install
    3. Run npm run dev
    4. Now access the web app from browser and enjoy!

Todo

Still many things to do. This is MVP with plenty of room for improvements

  • Use proper ORM using Gorm
  • Refactor seeding process

fullstack-go-vue's People

Contributors

yogski avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.