gouweb

command module
v0.9.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

README

gouweb

is a go web framework

Installation and setup

in your go path directory in src create folder gouprojs than clone repository to this directory

you can copy this commands:

cd $GOPATH/src/<your default path to projects(gihthub.com/example/)>
git clone https://github.com/MikhailBatsin-code/gouweb.git
cd gouweb
go build(will make cli binary)
./gouweb cli

First run

if you will try to run executable you will see error that tells you that there is no table test. You can remove model from modelslist in file framework/database/models/modelslist.go or run "mig:run:all" command in gouweb cli

gouweb cli

gouweb cli takes only one argument per call you can use build(it will build project) or cli(it will activate interactive mode)

If you renamed root directory of project

you can enter cli and type proj-rename. You will be prompted to enter new project name. Enter your current name of root directory. Next program will ask you to enter old project name. if it was just copied from git repository type gouweb. after that your imports will be updated

Migrations

first create it in cli than implement methods and put migration instance to miglist.go, than recompile cli and run in it mig:run:all

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL