Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/joshmerlino/tsx-app

Create fast single-page progressive-web-apps using PhotonCSS or Tailwind, React and TypeScript.
https://github.com/joshmerlino/tsx-app

api material-design material-ui photon rest rest-api tailwind

Last synced: about 1 month ago
JSON representation

Create fast single-page progressive-web-apps using PhotonCSS or Tailwind, React and TypeScript.

Awesome Lists containing this project

README

        

# tsx-app
### Checks
* [![Code Style Analysis](https://github.com/JoshMerlino/tsx-app/actions/workflows/code-style-analysis.yml/badge.svg)](https://github.com/JoshMerlino/tsx-app/actions/workflows/code-style-analysis.yml)
* [![Code Quality Analysis](https://github.com/JoshMerlino/tsx-app/actions/workflows/code-quality-analysis.yml/badge.svg)](https://github.com/JoshMerlino/tsx-app/actions/workflows/code-quality-analysis.yml)
* [![Test CI](https://github.com/JoshMerlino/tsx-app/actions/workflows/test-ci.yml/badge.svg)](https://github.com/JoshMerlino/tsx-app/actions/workflows/test-ci.yml)

### Software
* ubuntu-20.04.1lts
* git-2.25.1
* node-14.16.0
* npm-6.14.11

## Getting Started
```bash
# Clone the repo
git clone https://github.com/JoshMerlino/tsx-app -b (master | tailwind | photon) --single-branch -o upstream (my-app)
git branch -m master
```

Move into your new working directory.

```bash
# Install node build tools
sudo apt-get install build-essential -y

# Install node modules
npm install
```

## Creating API Endpoints
Create a `.ts` file in the `~/api` directory
```typescript
import { Request, Response } from "express";

export const route = [
"v1/test",
"v1/test/**"
];

export default function api(req: Request, res: Response): void {
res.json({});
}
```