nextjs-golang-crud-app

command module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 3 Imported by: 0

README

nextjs-golang-crud-app

🚨Simple full-stack project with nextjs and go-lang

The purpose of creating this project is to learn for junior programmers how to implement a full stack application and create the best structure for the application. Screenshot 2023-11-02 024037

Technology list in this project

in back-end:

  • Fiber
  • JWT token
  • Validator
  • Godotenv
  • Paginate
  • Postgres
  • GORM

in front-end:

  • React hook form
  • Axios
  • React-toastify
  • Tailwindcss
  • Typescript

How to run

In root of source you should run your go project

  go run main.go

In root frontend directory you should run your next project

  npm install
  npm run dev

API Reference

Local address
  http://127.0.0.1:8080
All endpoints
  GET /api/users -> get all users
  POST /api/user -> create new user
  PATCH /api/user/:id -> update user
  GET /api/user/:id -> get single user
  DELETE /api/user/:id -> delete user
  POST /api/login -> login to account

Screenshots

Screenshot 2023-11-02 023836 Screenshot 2023-11-02 023905

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
database

Jump to

Keyboard shortcuts

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