https://github.com/iris-contrib/mvc-template
Iris MVC project template
https://github.com/iris-contrib/mvc-template
iris iris-cli iris-golang
Last synced: 3 months ago
JSON representation
Iris MVC project template
- Host: GitHub
- URL: https://github.com/iris-contrib/mvc-template
- Owner: iris-contrib
- License: mit
- Created: 2020-09-17T20:57:28.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-11-05T20:43:11.000Z (about 2 years ago)
- Last Synced: 2024-11-13T15:06:03.090Z (about 1 year ago)
- Topics: iris, iris-cli, iris-golang
- Language: Go
- Homepage: https://github.com/kataras/iris-cli
- Size: 106 KB
- Stars: 2
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Iris MVC Application Template
[](https://github.com/iris-contrib/mvc-template/actions) [](https://goreportcard.com/report/github.com/iris-contrib/mvc-template)
This is a project template for [Iris](https://iris-go.com) MVC apps.
## Prerequisites
You will need to have:
- [Iris CLI](https://github.com/kataras/iris-cli) installed to run the `iris-cli` command.
- [Node.js](https://nodejs.org) to build the frontend application.
## Get started
Install the template with [Iris CLI](https://github.com/kataras/iris-cli):
```sh
iris-cli new --module=my-app mvc
```
Install the dependencies and build the MVC app manually with [Rollup](https://rollupjs.org)...
```sh
cd app
npm install
npm run build
```
...then **start the Iris web server**:
```sh
cd ../
go run main.go
```
Navigate to [localhost:8080](http://localhost:8080). You should see your app running.