goravel-demo-app

command module
v0.0.0-...-3737249 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MIT Imports: 11 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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