Skip to content

findryankp/mvcGo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mvcGo

💫 About

We aim to automate feature creation, making it faster and easier. Our approach leverages the MVC architecture with the Echo framework, Gorm, and other tools.

Our goal is to enable the creation of CRUD features in less than one minute. Additionally, a Dockerfile and a .gitignore file will also be generated.

🚀 Import

go get -u github.com/Findryankp/mvcGo@latest

👨🏽‍💻 Step By Step

  1. First step, add this syntax to your main function in main.go file
mvcGo.Init()
  • for example :
  1. Run this syntax in cmd/terminal
go run . init
  1. If successful, the following files will be generated:
  • Database configuration files
  • Middleware files (including JWT authentication, logging, and CORS)
  • User authentication files (for login and registration)
  • Environment files (.env) and Dockerfile
  • And more
  1. Set .env with your own configuration database

🚀 Create new feature

  • run this syntax in your cmd/terminal
go run . -ft FeaturesNames
  • ex : go run . -ft Rooms
  • CRUD controller, model, route, and migratiton feature from your FeatureNames will be generated based from model.txt

Simple Features

  • run this syntax in your cmd/terminal
go run . -f FeaturesNames
  • ex : go run . -f Rooms
  • CRUD controller, model, route, and migratiton feature from your FeatureNames will be created

🎯 Run Project

go run .
  • Try it with your postman or another

😎 Development by

Findryankp findryankp

About

MVC starter pack, automate feature creation to make it faster and easier.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages