A modern web application that formats and beautifies JSON data using GraphQL.
- Clean, intuitive user interface
- JSON formatting with proper indentation
- GraphQL API for data processing
- Interactive GraphiQL interface for API exploration
- Cross-platform compatibility
- Go
- Gin Web Framework
- GraphQL
- React
- TypeScript
- Axios
- Go 1.16 or higher
- Node.js 14 or higher
- npm or yarn
-
Navigate to the backend directory:
cd backend -
Install Go dependencies:
go mod tidy
-
Build and run the server:
go run cmd/server/main.go
The server will start on http://localhost:8080
-
Access the GraphiQL interface: Open http://localhost:8080/graphiql in your browser to explore the GraphQL API.
-
Navigate to the project root directory
-
Install dependencies:
npm install
or
yarn install
-
Start the development server:
npm start
or
yarn start
The application will be available at http://localhost:3000
- Enter or paste your JSON data into the input field
- Click the "Format JSON" button
- View the formatted JSON in the output area
- URL:
http://localhost:8080/graphql - Method:
POST
query {
formatJSON(input: "{\"name\":\"John\",\"age\":30}")
}Run the backend tests with:
cd backend
go test ./...This project uses GitHub Actions for continuous integration and deployment. The workflow automatically:
- Runs tests for the backend Go code
- Builds the frontend React application
- Deploys to production when changes are pushed to the main branch
You can view the workflow configuration in .github/workflows/ci-cd.yml.
The current status of the CI/CD pipeline can be seen at the top of this README or on the Actions tab of the GitHub repository.
This project is licensed under the MIT License - see the LICENSE file for details.
- GraphQL for providing a flexible query language
- Go for a robust backend runtime
- React for an efficient frontend framework

