https://github.com/nikext/react-go-app
React & Go app
https://github.com/nikext/react-go-app
chakra-ui fiber go golang mongodb react reactquery tanstack-react-query typescript vite
Last synced: 3 months ago
JSON representation
React & Go app
- Host: GitHub
- URL: https://github.com/nikext/react-go-app
- Owner: nikext
- License: mit
- Created: 2024-09-20T12:40:49.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-23T16:14:27.000Z (almost 2 years ago)
- Last Synced: 2025-07-25T03:48:33.716Z (11 months ago)
- Topics: chakra-ui, fiber, go, golang, mongodb, react, reactquery, tanstack-react-query, typescript, vite
- Language: TypeScript
- Homepage:
- Size: 69.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go + React Application
This is a simple Go + React application. Follow the instructions below to get started.
## Prerequisites
Make sure you have the following installed on your machine:
- [Go](https://golang.org/doc/install)
- [Node.js](https://nodejs.org/) (which includes npm)
## Getting Started
### Backend (Go)
1. Clone the repository:
```sh
git clone https://github.com/nikext/react-go-app.git
cd react-go-app
```
2. Create a `.env` file in the root directory and add the following environment variables:
```env
# .env
PORT=4000
MONGODB_URI=your_mongodb_uri
MODE=development
```
3. Install Go dependencies:
```sh
go mod tidy
```
4. Run the Go server:
```sh
go run main.go OR air
```
### Frontend (React)
1. Navigate to the `client` directory:
```sh
cd client
```
2. Install Node.js dependencies:
```sh
npm install
```
3. Start the React development server:
```sh
npm run dev
```
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.