This is a demo app for the Goravel web framework.
- Routing
- Handlers (For Laravel's Controllers)
- Middlewares
- Views
- Database (PostgreSQL)
- Migrations
- Models
- Upper/db ORM
- Validation
- Session Management
- User Authentication
- Cache Management
- How to send JSON and XML responses using Goravel
- Email Sending
- Password Reset
- Remember Me functionality using Cookies
- API Routes
- Crud Operations
-
Clone the repository:
git clone [email protected]:saalikmubeen/goravel-demo-app.git cd goravel-demo-app
-
Install the dependencies:
go mod tidy
-
Fill the .env file with your database credentials:
-
Install the [Goravel Command Line Tool]:
go install github.com/saalikmubeen/goravel/cmd/goravel@latest
Make sure you have the $GOPATH/bin
directory in your PATH
environment variable. If you don't have it, you can add it to your ~/.bashrc
or ~/.bash_profile
or ~/.zshrc
file:
export GOPATH="$HOME/go"
export PATH=$PATH:$GOPATH/bin
-
Run the migrations (from the root of the project)
goravel migrate up
6. Start the server:
```bash
go run ./*.go
- Visit
http://localhost:4000
in your browser.