Skip to content

saalikmubeen/goravel-demo-app

Repository files navigation

goravel-demo-app

This is a demo app for the Goravel web framework.

Goravel Demo App

Features demonstrated in this demo app:

  • 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

Installation

  1. Clone the repository:

    git clone git@github.com:saalikmubeen/goravel-demo-app.git
    
     cd goravel-demo-app
  2. Install the dependencies:

    go mod tidy
  3. Fill the .env file with your database credentials:

  4. 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
  1. Run the migrations (from the root of the project)

     goravel migrate up

6. Start the server:

 ```bash
 go run ./*.go

Goravel Demo App

  1. Visit http://localhost:4000 in your browser.

About

Demo app for the Goravel web framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published