Spaces:
Runtime error
Runtime error
Hanzo Dev
commited on
Commit
·
e2db416
0
Parent(s):
Initial commit for api-docs template
Browse files- .gitignore +10 -0
- Dockerfile +21 -0
- README.md +41 -0
.gitignore
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
node_modules
|
| 2 |
+
.next
|
| 3 |
+
.cache
|
| 4 |
+
dist
|
| 5 |
+
build
|
| 6 |
+
.DS_Store
|
| 7 |
+
*.log
|
| 8 |
+
.env.local
|
| 9 |
+
.env.*.local
|
| 10 |
+
*.tsbuildinfo
|
Dockerfile
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM node:20-slim
|
| 2 |
+
|
| 3 |
+
WORKDIR /app
|
| 4 |
+
|
| 5 |
+
# Copy package files
|
| 6 |
+
COPY package*.json ./
|
| 7 |
+
|
| 8 |
+
# Install dependencies
|
| 9 |
+
RUN npm ci --only=production
|
| 10 |
+
|
| 11 |
+
# Copy application files
|
| 12 |
+
COPY . .
|
| 13 |
+
|
| 14 |
+
# Build the application
|
| 15 |
+
RUN npm run build
|
| 16 |
+
|
| 17 |
+
# Expose port
|
| 18 |
+
EXPOSE 3000
|
| 19 |
+
|
| 20 |
+
# Start the application
|
| 21 |
+
CMD ["npm", "start"]
|
README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: api-docs Template
|
| 3 |
+
emoji: 🚀
|
| 4 |
+
colorFrom: gray
|
| 5 |
+
colorTo: black
|
| 6 |
+
sdk: docker
|
| 7 |
+
app_port: 3000
|
| 8 |
+
pinned: true
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# api-docs Template
|
| 12 |
+
|
| 13 |
+
A Hanzo template for building modern applications.
|
| 14 |
+
|
| 15 |
+
## Features
|
| 16 |
+
- Built with @hanzo/ui
|
| 17 |
+
- Fully responsive
|
| 18 |
+
- TypeScript support
|
| 19 |
+
- Tailwind CSS styling
|
| 20 |
+
- shadcn/ui components
|
| 21 |
+
|
| 22 |
+
## Installation
|
| 23 |
+
|
| 24 |
+
```bash
|
| 25 |
+
npx create-hanzo-app --template api-docs
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
## Development
|
| 29 |
+
|
| 30 |
+
```bash
|
| 31 |
+
npm install
|
| 32 |
+
npm run dev
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
## Build
|
| 36 |
+
|
| 37 |
+
```bash
|
| 38 |
+
npm run build
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
Check out the [Hanzo Template Gallery](https://huggingface.co/spaces/hanzoai/gallery) for more templates.
|