Giter Site home page Giter Site logo

zanzythebar / solidjstaurimobile Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 0.0 623 KB

๐Ÿฆ€ This is a fully-featured Tauri project template using Solid-JS ๐Ÿฆ€

HTML 2.22% JavaScript 9.29% Shell 29.22% PowerShell 7.04% Rust 4.88% CSS 3.72% TypeScript 12.46% Dockerfile 31.17%
andoid-app android ios ios-app rust rust-lang solid-js solidjs solidjs-starter solidjs-template tauri tauri-app template-project mobile

solidjstaurimobile's Introduction

SolidJSTauriMobile

This is a streamlined Tauri project using Vite and SolidJS

This example includes:

Usage

yarn # or pnpm install or npm install

Learn more on the Solid Website and come chat with us on our Discord

Available Scripts

In the project directory, you can run:

yarn tauri dev

Runs the app in the development mode.

An app should launch on your desktop.

Alternatively open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.

yarn docs

Uses JSDoc to build a documentation website based on the projects documentation.

yarn lint

Runs eslint on all of the included files.

yarn format

Uses Prettier and the above yarn lint command to lint and then format all included file types.

Deployment

To build your app, run the following:

yarn tauri build

Builds the app for production to the src-tauri/target folder.
It correctly bundles Solid in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

Mobile Deployment

Pre-requisites

Navigate to the setup folder and run the setup script for your OS and target.

If you prefer to use the Android Studio for Android development, you can skip the setup script and simply follow these docs and here.

No matter which method you choose, you will need to have the Android SDK installed and the ANDROID_HOME environment variable set.

You will also need to have Xcode installed for iOS development.

The following command is needed for android development:

rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android

Warning: You need rust to be installed prior to running the above command.

Next run the following command to setup the mobile environment:

yarn tauri <target> init

Where <target> is one of the following:

  • ios
  • android

Running your app

To run your app using the mobile server, run the following:

yarn tauri <target> dev

Running the app with Android Studio

yarn tauri android dev [--open]

The --open flag will open the project in Android Studio after the build is complete.

You can then select your emulator or device and run the app.

Building your app

To build your app for mobile, run the following:

yarn tauri <target> build

solidjstaurimobile's People

Contributors

renovate[bot] avatar zanzythebar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

solidjstaurimobile's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update dependency better-docs to v2.7.3
  • chore(deps): update dependency postcss to v8.4.47
  • chore(deps): update tauri monorepo (@tauri-apps/api, @tauri-apps/cli)
  • fix(deps): update dependency @tailwindcss/typography to v0.5.15
  • fix(deps): update dependency yarn to v1.22.22
  • fix(deps): update rust crate serde to v1.0.210
  • fix(deps): update rust crate serde_json to v1.0.128
  • chore(deps): update dependency babel-loader to v9.2.1
  • chore(deps): update dependency eslint to v8.57.1
  • chore(deps): update dependency eslint-import-resolver-typescript to v3.6.3
  • chore(deps): update dependency eslint-plugin-import to v2.30.0
  • chore(deps): update dependency eslint-plugin-solid to ^0.14.0
  • chore(deps): update dependency vite-plugin-solid to v2.10.2
  • chore(deps): update typescript-eslint monorepo to v5.62.0 (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • chore(deps): update dependency @types/node to v20
  • chore(deps): update dependency eslint to v9
  • chore(deps): update dependency eslint-config-prettier to v9
  • chore(deps): update dependency eslint-plugin-autofix to v2
  • chore(deps): update dependency internal-ip to v8
  • chore(deps): update dependency postcss-import to v16
  • chore(deps): update dependency prettier to v3
  • chore(deps): update dependency typescript to v5
  • chore(deps): update dependency vite to v5
  • chore(deps): update mcr.microsoft.com/vscode/devcontainers/base docker tag to v1
  • chore(deps): update typescript-eslint monorepo to v8 (major) (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

cargo
src-tauri/Cargo.toml
  • serde_json 1.0
  • serde 1.0
  • tauri 2.0.0-alpha.8
  • tauri-build 2.0.0-alpha.4
devcontainer
.devcontainer/devcontainer.json
  • ghcr.io/devcontainers/features/node 1
dockerfile
.devcontainer/Dockerfile
  • mcr.microsoft.com/vscode/devcontainers/base 0-ubuntu-22.04
npm
package.json
  • @tailwindcss/typography ^0.5.8
  • solid-js ^1.6.6
  • yarn ^1.22.19
  • @babel/core ^7.20.2
  • @babel/preset-env ^7.18.0
  • @tailwindcss/forms ^0.5.3
  • @tauri-apps/api ^2.0.0-alpha.0
  • @tauri-apps/cli ^2.0.0-alpha.1
  • @types/node ^18.11.9
  • @typescript-eslint/eslint-plugin ^5.46.1
  • @typescript-eslint/parser ^5.46.1
  • autoprefixer ^10.4.12
  • babel-loader ^9.0.0
  • better-docs ^2.7.2
  • eslint >=5.16.0
  • eslint-config-google ^0.14.0
  • eslint-config-prettier ^8.5.0
  • eslint-import-resolver-typescript ^3.5.2
  • eslint-plugin-autofix ^1.1.0
  • eslint-plugin-import ^2.26.0
  • eslint-plugin-solid ^0.11.0
  • https-localhost ^4.7.1
  • internal-ip ^7.0.0
  • jsdoc ^4.0.0
  • postcss ^8.4.18
  • postcss-import ^15.0.0
  • prettier ^2.7.1
  • tailwindcss ^3.2.0
  • typescript ^4.8.4
  • vite ^4.0.3
  • vite-plugin-solid ^2.5.0

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.