tsx-app Tailwind Templates

Tsx App

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

tsx-app

Checks

Software

  • ubuntu-20.04.1lts
  • git-2.25.1
  • node-14.16.0
  • npm-6.14.11

Getting Started

# 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.

# 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

import { Request, Response } from "express";

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

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

Top categories

Loading Svelte Themes