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

https://github.com/camhahu/tiny-api-client

The client repository for Tiny API - A website for developers to quickly create REST endpoints with a static JSON response for testing and development
https://github.com/camhahu/tiny-api-client

api create-react-app json react rest scss typescript

Last synced: 6 months ago
JSON representation

The client repository for Tiny API - A website for developers to quickly create REST endpoints with a static JSON response for testing and development

Awesome Lists containing this project

README

          

**_This project is no longer active._**

# [Tiny API](https://tiny-api.dev) - A Tiny API To Make Tiny APIs
![Website Preview](https://github.com/cameronhh/tiny-api-client/blob/master/.github/repo-image.png)

- *Quickly prototyping some front-end code and need a couple of endpoints to return some static JSON?*
- *Perhaps you're integrating a front-end with a back-end that doesn't have a test server?*
- _Maybe, you just want to see a website with a memorable user experience?_
- ***Make an endpoint that returns static JSON in seconds with [Tiny API](https://tiny-api.dev)***

This repo is the front end code for [https://tiny-api.dev](https://tiny-api.dev). The Tiny API website was created with [Create React App](https://github.com/facebook/create-react-app).

***The code for the server can be found [here](https://github.com/cameronhh/tiny-api).***

## Setting up the development environment

### 1. Install dependencies

Run `npm i` or `yarn install`

### 2. Set environment variables

The package scripts have been adjusted and assume you have a `.env` file in the root directory.

Create a `.env` file with the following variables:

```
REACT_APP_API_URL=http://localhost:8080
PORT=3000
```

### 3. Run the development server

To run the server, run `npm run start` or `yarn start`