Skip to content

A simple Pokédex that shows off a partial implementation of the Inertia.js protocol using the Go programming language with the Echo web framework.

Notifications You must be signed in to change notification settings

kevinchar93/inertiajs-go-echo-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

inertiajs-go-echo-adapter

A simple Pokédex that shows off a partial implementation of the Inertia.js protocol using the Go programming language with the Echo web framework.

This project was made along with the video "Inertia.js - How it works" to illustrate in code how Inertia.js works.

There is a video series "Let's Build An Inertia.js Adapter in Go", that shows the building of this project with commentary.

Prerequisites

  • You must have an installation of the Go programming language, this project used go version go1.21.1 darwin/arm64 at the time it was created
  • You must have an installation of Node.js, this project used Node.js v18.17.1 at the time it was created

Running the example app

  • Navigate to the views directory & run npm install

If you are on a Mac/Unix/Linux machine run make dev in the project root to start the vite dev server & go dev server simultaneously; you can also start them individually by running make dev-client & make dev-server respectively

If you are on a Windows machine you can start the vite dev server by running $env:BUILD_ENV='development'; npm --prefix ./views run dev; Remove-Item Env:\BUILD_ENV in the project root; you can start the go dev server by running $env:BUILD_ENV='development'; go run main.go; Remove-Item Env:\BUILD_ENV in the project root.

Note that both the vite dev server & go dev server need to be running for this example to work.

Navigate to http:localhost:3000 & you should see the example Inertia.js app running

Copyright Notice

All images in repository & the word "Pokédex" are copyrighted by the Pokémon Company and its affiliates. This repository uses them exclusively for educational purposes to build an example "Pokédex" while teching about the Inertia.js library.

The pokedex.json file is from the repository "fanzeyi/pokemon.json", which itself a compilation of data collected by the editors of Bulbapedia.

About

A simple Pokédex that shows off a partial implementation of the Inertia.js protocol using the Go programming language with the Echo web framework.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published