Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⚡ Instant stackblitz demo #136

Merged
merged 7 commits into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/main-demo/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TOKEN_SECRET_KEY=ReplaceMeWithYourSecretKey
2 changes: 2 additions & 0 deletions examples/main-demo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

node_modules
3 changes: 3 additions & 0 deletions examples/main-demo/.stackblitzrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"startCommand": "npm run manifest"
}
28 changes: 28 additions & 0 deletions examples/main-demo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 🦚 Manifest Demo

This is a [Manifest](https://manifest.build) demo project.

## Available scripts

In the project directory, you can run:

### `npm manifest`

Runs the app in the development mode.\
Open [http://localhost:1111](http://localhost:1111) to view the admin panel in your browser.\
Open [http://localhost:1111/api](http://localhost:1111/api) to view the REST API documentation in your browser.\

The page will reload when you make changes.

### `npm manifest:seed`

Seeds dummy data for your entities and properties. This commands deletes the previous data.

## Access to the admin panel

**EMAIL:** [email protected]
**PASSWORD:** admin

## Learn More

You can learn more in the [Manifest documentation](https://manifest.build/docs).
Binary file added examples/main-demo/manifest/backend.db
Binary file not shown.
50 changes: 50 additions & 0 deletions examples/main-demo/manifest/backend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 🦚 WELCOME TO MANIFEST 🦚 - A complete backend in 1 single file
# Read more at https://manifest.build/docs

# ******************************************
# * ADMIN PANEL CREDENTIALS *
# * *
# * EMAIL: [email protected] *
# * PASSWORD: admin *
# ******************************************

name: Simple Invoicing App

entities: # Define your entities here.
📄 Invoice:
properties:
- { name: date, type: date }
- { name: invoiceNumber, type: number }
- { name: amount, type: money, options: { currency: USD } }
- { name: payed, type: boolean }
belongsTo:
- Project # A simple relationship between Invoice and Project

🛠️ Project:
properties:
- name
- description
- { name: deadline, type: date }
- { name: budget, type: money, options: { currency: USD } }
- {
name: type,
type: choice,
options: { values: ['Service', 'Product', 'Retail'] }
}
- { name: finished, type: boolean }
# Checkout all available real-world types: https://manifest.build/docs/properties#property-types
belongsTo:
- Customer

🧾 Customer:
properties:
- { name: name, type: string }
- { name: email, type: email }
- { name: billingAddress, type: text }
- { name: location, type: location }
- {
name: industry,
type: choice,
options:
{ values: ['Retail', 'Services', 'Manufacturing', 'Technology'] }
}
Loading
Loading