Discover Packages
github.com/Fingertips18/go-starter
command
module
Version:
v0.0.0-...-8d4bd71
Opens a new window with list of versions in this module.
Published: Dec 4, 2024
License: MIT
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
ΒΆ
π Go Starter
This repository serves as a playground for exploring Go (Golang) features, including API development , syntax experimentation , and learning the basics of Go programming. Ideal for beginners and developers looking to get hands-on experience with Go .
π Website Link: Live
π Table of Contents
π§ Technologies Used
Frontend : React JS βοΈ
Backend : Go (Golang) π
Database : MongoDB ποΈ
UI : Chakra UI π
Query : Tanstack Query π
β¨ Features
π CRUD Operations : Create, Read, Update, and Delete operations for user and application data.
π± Responsive UI : Developed using Chakra UI components, ensuring a seamless experience across devices.
π‘ API : Robust API constructed using Express.js and MongoDB for seamless data interaction.
π Setup Instructions
π οΈ Backend Go (Golang)
Clone the repository :
git clone https://github.com/Fingertips18/go-starter.git
Install dependencies :
cd go-starter
go mod tidy
Set up environment variables. Create a .env
file in the root directory: :
MONGO_URI=<MONGO_URI>
PORT=<PORT>
MODE=<MODE>
CLIENT_URL=<CLIENT_URL>
Run the backend server :
go run main.go
// or
go install github.com/air-verse/air@latest
air
βοΈ Frontend (React JS)
Navigate to the frontend directory :
cd client
Install dependencies :
npm install
Set up environment variables. Create a .env
file in the frontend directory :
VITE_BASE_URL=<VITE_BASE_URL>
Run the frontend server :
npm run dev
π‘ API Endpoints
Todos :
GET
/api/todos : Retrieve a list of todos.
GET
/api/todos/:id : Retrieve a single todo by ID.
POST
/api/todos : Create a new todo.
PATCH
/api/todos/:id : Update an existing todo by ID.
DELETE
/api/todos/:id : Delete a todo by ID.
π€ Contributing
Feel free to fork this repository and contribute by submitting a pull request. All contributions are welcome!
π§βπ» Contributors
Ghian Tan @ Fingertips (Github )
π License
This project is licensed under the MIT License.
Expand βΎ
Collapse β΄
Documentation
ΒΆ
There is no documentation for this package.
Source Files
ΒΆ
Directories
ΒΆ
src
Click to show internal directories.
Click to hide internal directories.