Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/anandkr21/assignment-exactspace


https://github.com/anandkr21/assignment-exactspace

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# JSON Format Web Application

This is a simple web application that allows you to submit JSON data through a web form and displays the submitted JSON in a formatted manner.

## Getting Started

To run this project locally, follow these steps:

### 1. Clone this repository:

```bash
git clone https://github.com/Anandkr21/assignment-ExactSpace.git
```

### 2. Navigate to the project directory:

```bash
cd your-project-name
```

### 3. Install the dependencies:

```bash
npm install
```

### 4. Start the server:

```bash
node index.js
```

### 5. Open your browser and go to [http://localhost:3000](http://localhost:3000) to access the web application.

## Usage

1. In the "Input box," enter valid JSON data into the textarea.
2. Click the "Submit" button to submit the JSON data.
3. The submitted JSON will be displayed in the "Output box" below, formatted for better readability.

## Technologies Used

- Node.js
- Express.js
- HTML
- CSS
- JavaScript

## API Endpoints

- `POST /post`: Handles JSON data submission. If the data is valid JSON, it responds with the same JSON data. If the data is not valid JSON, it returns an error message.

## Contributing

Contributions are welcome! If you find any issues or have suggestions, feel free to open an issue or submit a pull request.

## Contact

If you have any questions or feedback, you can reach out to [[email protected]]([email protected]).

---