Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/pooulad/nextjs-golang-crud-app
- Owner: pooulad
- License: mit
- Created: 2023-08-07T10:27:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-15T17:34:12.000Z (3 months ago)
- Last Synced: 2024-08-22T21:30:31.569Z (3 months ago)
- Topics: animation, api-rest, authentication, bcrypt, crud-application, fiber-framework, godotenv, golang, gorm, hashing, http-server, javascript, jwt, nextjs, pagination, postgresql, reactjs, redux, typescript
- Language: TypeScript
- Homepage:
- Size: 10.8 MB
- Stars: 12
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nextjs-golang-crud-app
🚨Simple full-stack project with nextjs and go-langThe 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
- GORMin 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)