Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/joshmerlino/tsx-app
- Owner: JoshMerlino
- Created: 2021-06-20T03:26:20.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-09T21:58:45.000Z (almost 2 years ago)
- Last Synced: 2024-05-29T19:12:30.558Z (8 months ago)
- Topics: api, material-design, material-ui, photon, rest, rest-api, tailwind
- Language: TypeScript
- Homepage:
- Size: 10.6 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
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({});
}
```