react-go-app

command module
v0.0.0-...-ea5047b Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 11 Imported by: 0

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:

Getting Started

Backend (Go)
  1. Clone the repository:

    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
    PORT=4000
    MONGODB_URI=your_mongodb_uri
    MODE=development
    
  3. Install Go dependencies:

    go mod tidy
    
  4. Run the Go server:

    go run main.go OR air
    
Frontend (React)
  1. Navigate to the client directory:

    cd client
    
  2. Install Node.js dependencies:

    npm install
    
  3. Start the React development server:

    npm run dev
    

License

This project is licensed under the MIT License - see the LICENSE file for details.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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