Giter VIP home page Giter VIP logo

goweb's Introduction

goweb

cookie cutter for small scale web application desktop mobile

Features

Prepare Development Tools

  1. install golang
  2. install nodeJS
  3. install GCC compiler (for golang compile github.com/mattn/go-sqlite3 package)
  4. install Visual Studio Code (or any equivalent text editor)

Initialize Source Code

Open command line terminal (target directory to project directory)

> cd backend

> go build

> cd ../frontend

> npm install

> npm run build

Build & Run

Using terminal: (target directory to project directory)

To build backend server:

> cd backend

> go build

To build frontend server:

> cd frontend

> npm run build

To start web server:

> cd frontend

> npm run start

Setup & Run Unit Test

  1. Create an empty database
  2. Start run with enable flag dbinittable and change database setting pointed to newly created database
    • in order to generate all basic data tables
    • test record will not affect in-production database
  3. Edit ./util/helper.go
    • modify GetTestDB() function to target your test database
  4. Go to ./generateRecord_test.go
    • uncomment TestGenerateRecords()
    • run test on TestGenerateRecords()
    • comment back TestGenerateRecords()
  5. Run unit test

    go test ./...

Credits

icons made by Freepik

background image made by Tookapic

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.