Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pooulad/nextjs-golang-crud-app

🚨simple full-stack project with nextjs and go-lang
https://github.com/pooulad/nextjs-golang-crud-app

animation api-rest authentication bcrypt crud-application fiber-framework godotenv golang gorm hashing http-server javascript jwt nextjs pagination postgresql reactjs redux typescript

Last synced: about 4 hours ago
JSON representation

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

Awesome Lists containing this project

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](https://github.com/pooulad/nextjs-golang-crud-app/assets/86445458/e71ba4ef-033d-4419-8b49-0b2f73eb4bc3)

## Technology list in this project

in back-end:
- Fiber
- JWT token
- Validator
- Godotenv
- Paginate
- Postgres
- GORM

in front-end:
- React hook form
- Axios
- React-loading
- React-toastify
- Tailwindcss
- Typescript

## How to run

In root of source you should run your go project
```bash
go run main.go
```
In root frontend directory you should run your next project
```bash
npm install
npm run dev
```

## API Reference

#### Local address
```bash
http://127.0.0.1:8080
```
#### All endpoints

```http
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/user -> login
```

## Screenshots

![Screenshot 2023-11-02 023836](https://github.com/pooulad/nextjs-golang-crud-app/assets/86445458/92e31a27-57c3-41c6-a569-3b92d09642d2)
![Screenshot 2023-11-02 023905](https://github.com/pooulad/nextjs-golang-crud-app/assets/86445458/895c8c7c-0d86-474d-a45c-48f5e8c0cf27)