goyave-blog-example

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

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

Go to latest
Published: Aug 12, 2024 License: MIT Imports: 16 Imported by: 0

README

Goyave Logo Goyave Logo

Goyave Blog Example

This example project was created to demonstrate a simple application built with Goyave including CRUD operations, authentication, routing, pagination, and more. With this application, users can register, login and write blog posts (articles) or read the other user's ones.

Running the project

First, make your own configuration for your local environment.

  • Copy config.example.json to config.json.
  • Start the database container with docker compose up.
  • Run migrations with dbmate: dbmate -u postgres://dbuser:secret@127.0.0.1:5432/blog?sslmode=disable -d ./database/migrations --no-dump-schema migrate
  • Run go run main.go in your project's directory to start the server. If you want to seed your database with random records use the -seed flag: go run main.go -seed. Users will all be created with the following password: p4ssW0rd_

Resources

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
database
http

Jump to

Keyboard shortcuts

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