SDK For developing 1Tool modules.

Overview

Contributors Forks Stargazers Issues MIT License


Logo

1tool-module-skeleton

SDK For developing 1Tool modules.
Explore the API docs »

1Tool · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Project structure
  4. Links
  5. License
  6. FAQ

About The Project

1Tool

1Tool module skeleton is a front-end setup for scaffolding 1Tool modules independently from backend. We provide this code, so anyone can build modules on top of the 1Tool suite api.

Here's why:

  • Easy and fast setup without the hurdles of setting up a backend server.
  • Your time should be focused on creating something amazing. A project that solves a problem and helps others
  • You shouldn't be doing the same tasks over and over like setting up an authorized api or state management from scratch

Of course, no template will serve all modules since your needs may be different. So we'll be adding more in the near future. You may also suggest changes by forking this repo and creating a pull request or opening an issue.

Use the Getting started section to get started.

(back to top)

Built With

(back to top)

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

You should have an user account at 1Tool suite and be familiar with the following technologies:

  • Tailwind CSS
  • Vue3 ecosystem
    • vue routing
    • composition api
    • pinia state management
    • vue single file components (SFC)

Installation

  1. Obtain an API Key at https://my.1tool.com/suite/api
  2. Clone the repo
    git clone https://github.com/1tool/1tool-module-skeleton.git
  3. Install NPM packages
    npm install
  4. Enter your API token and tenant id in meta tags of public/index.html
     <meta name="tenant-id" content="API_TENANT">
     <meta name="auth-token" content="API_TOKEN">

Usage

To start a development server simple run

npm run watch

(back to top)

Creating a new module

There is a Demo app provided in src/apps/Demo. To get started with a new module there's a few steps to take:

  • Simply duplicate Demo folder and give it a name of the new module; i.e.: ProjectSettings.
  • Replace all occurences of Demo with NewModule and demo with newmodule in the newly created folder.
  • Rename apps/NewModule/views/Demo.vue to apps/NewModule/views/NewModule.vue
  • Replace data-module="Demo" to data-module="NewModule" in public/index.html frontend mount point.

(back to top)

Project structure

The entry point of the application is defined in public/index.html:

<div id="frontend-canvas" data-module="Demo"></div>

Everything you need to worry about is in src/apps. The rest of the code is just a setup that get's provided by 1Tool.

src/apps/
`-- Module
    |-- api
    |   `-- index.js   - provides authorized api client
    |-- components
    |   `-- *.vue      - a place to store your vue SFC components
    |-- lang
    |   `-- index.js   - contains translation language lines
    |-- router
    |   `-- routes.js  - defines module routes and views
    |-- store
    |   `-- index.js   - pinia application state
    |-- views
    |   `-- Module.vue - base module view
    `-- index.js

(back to top)

Links

A list of links to documentation pages:

(back to top)

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

FAQ

Where can I obtain an api token?

You can obtain an api token with authorizing your user against the auth/user api endpoint: Read more on api documentation.

(back to top)

You might also like...

A base for developing Discord.js bots, written in TypeScript.

A base for developing Discord.js bots, written in TypeScript.

Nyx is a Discord bot template written in Typescript, supporting most of Discord.js' features alongside tools useful for bot development. 🇪🇸 README e

Dec 15, 2022

a quick start boilerplate for developing web3 apps and deploying smart contracts.

create-web3 A boilerplate for starting a web3 project. This boilerplate quickly creates a mono repo with 2 environments, a Next JS environment for fro

Dec 16, 2022

A simple project to learn more about developing smart contracts on polygon.

polygon-books-hardhat A simple project to learn more about developing smart contracts using Solidity. Local Development Environment Setup Install all

Jan 25, 2022

A javascript framework for developing pretty browser dialogs and notifications.

A javascript framework for developing pretty browser dialogs and notifications.

AlertifyJS AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications. AlertifyJS is an extreme makeover of alertify

Jan 2, 2023

Progressive Web App (PWA) built in Node.js & Express that automatically reloads/refreshes your browser, web page, and app when developing.

Expresso ☕️ Checks for changes in your source and automatically reloads your browser, or web page, and app window. Makes development easier. Report Bu

Oct 6, 2022

A hub for web developers that offers a variety of tools to help with any developing needs.

A hub for web developers that offers a variety of tools to help with any developing needs.

WebDevHub - A place for developers WebDevHub is designed to be one central place for developers, that offers a variety of tools to help with any devel

Dec 11, 2022

(Developing) Twitter Clone made with Remix, EdgeDB & UnoCSS.

Twitter Clone Twitter clone made with Remix, EdgeDB & UnoCSS. Demo: twitter-clone.poke.dev Features Signup/Login (With GitHub OAuth) Create tweets Fol

Jan 3, 2023

Template for developing plugins for Acode editor.

acode-plugin To create plugin for Acode editor use this template. To use this template create a github repository and add https://github.com/deadlyjac

Jan 3, 2023

Template to start developing a REST API with Node.js (Express), TypeScript, DDD, etc. 🔰🦸

Template to start developing a REST API with Node.js (Express), TypeScript, DDD, etc. 🔰🦸

Typescript DDD Boilerplate Plantilla para una API con Typescript basada en arquitectura DDD. En qué consiste este proyecto Este proyecto es un punto d

Nov 26, 2022
Owner
1Tool
1Tool
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
This is an app developed in the Microverse course, it is a simple app used for developing a task list, using JavaScript modules and webpack

TODO LIST This is an app developed in the microverse course, developing a task list, using Javascript modules and webpack A simple app to help you man

JUSTINE IMASIKU 5 Jul 28, 2022
The iofod SDK provides developers with the ability to interact with the main iofod interface within the Web worker, enabling rapid development of iofod extensions through the SDK.

iofod-sdk English | 简体中文 The iofod SDK provides developers with the ability to interact with the main iofod interface within the Web worker, enabling

iofod, Inc. 47 Oct 17, 2022
Movehat is a TypeScript SDK for Move on Sui built on top of Sui's TypeScript SDK and our fork of Ian Macalinao's `move-ts`.

Movehat Movehat is a TypeScript SDK for Move on Sui built on top of Sui's TypeScript SDK and our fork of Ian Macalinao's move-ts. Movehat aspires to b

Pentagon 10 Sep 30, 2022
This project is based on the Awesome Books app repo, refactored with ES6 and organized with modules. The purpose of this project is to learn functionality organization using JavaScript modules.

Awesome Books with ES6 and modules A basic app project built with HTML, CSS and JS ES6 to keep track of awesome books. Built With HTML/CSS and JS best

Karla Delgado 10 Aug 27, 2022
A free book that talks about design patterns/techniques used while developing with React.

React in patterns ?? A free book that talks about design patterns/techniques used while developing with React. Book GitBook Web PDF Mobi ePub Translat

Krasimir Tsonev 12.2k Dec 30, 2022
AppRun is a JavaScript library for developing high-performance and reliable web applications using the elm inspired architecture, events and components.

AppRun AppRun is a JavaScript library for building reliable, high-performance web applications using the Elm-inspired architecture, events, and compon

Yiyi Sun 1.1k Dec 20, 2022
Providing a complete list of Kurdish (ckb) Alphabet for developing purposes

Providing complete information on Arabic-based Kurdish Alphabets (CKB) Kurdish Alphabet Arabic-based Kurdish Characters Character Unicode Code Point N

Dolan Hêriş 4 Aug 6, 2022
Been interested, studying, and developing blockchain security with a Zero Knowledge Proof (ZKP) and create a prototype on the current issue with Philippine's upcoming election. 📥

Implementation of Zero Knowledge Proofs in Cryptographic Voting ?? Reference: Cryptographic Voting – A Gentle Introduction Overview ????‍?? The main i

Karl Joseph Saycon 2 Apr 11, 2022