create-deskthing
v0.10.4
Published
The DeskThing template for building DeskThing Apps
Downloads
413
Maintainers
Readme
Deskthing-Template
Overview
This template provides a starting point for creating an app for the DeskThingServer application. It includes a basic project structure and configuration to help you get started quickly.
Prerequisites
- Node.js (v14 or later)
- npm (v6 or later)
Getting Started
Initialize this repository:
npm create deskthing@latest
Follow the setup and step into your app:
Start the development server:
npm run dev
Project Structure
src/
: Contains the React application source code. This is the webpagepublic/
: Static assets and HTML template. This includes your manifest.jsonserver/
: Your backend code that runs the core of your app
Available Scripts
npm run dev
: Starts the development servernpm run build
: Builds the app into /dist where you can zip the files and load them into the DeskThingServer
Customizing the Template
- Update the
package.json
or/public/manifest.json
files with your project details if they change - Modify the
index.html
file to change the app title and meta information - Start building your React components in the
src/components/
directory - Customize your server in
server/index.ts
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
How to use
For instructions on setting up and running the client (webpage), refer to the deskthing-client tool https://github.com/ItsRiprod/deskthing-app-client
For instructions on setting up and running the server, refer to the deskthing-server tool https://github.com/ItsRiprod/deskthing-app-server