Learn why Svelte has recently been voted the most loved web framework & let's build your first Svelte App with a Kintone Database
Our free, live workshop will walk you through creating a Web Database App, setting up a Svelte project, and using GET and POST requests to save to a Kintone web database.
- Getting Started With Svelte (Stop Using React!)
- Finished Project
- Get Started
- Get Your Free Kintone Database
- Create a Kintone Web Database App
- From your portal, click the add app button
- And create an app from scratch
- Add a Text box, and a Radio Button
- Edit the settings of the text box
- Change the label, and field code (case sensitive!)
- Once more for the Radio Button
- Change the label, and field code (case sensitive!)
- Last, don't forget to save your changes!
- Kintone API Token
- Create a
.env
File - Appendix
- Debugging - Let's Fix Those Problems 💪
First, clone the kintone-workshops/intro-to-svelte repo! 🚀
Then go inside the folder.
cd Downloads
git clone https://github.com/kintone-workshops/intro-to-svelte
cd intro-to-svelte
Open the intro-to-svelte
folder in VS Code as well:
code .
Once you are inside the folder, let's install the dependencies and open our project:
npm install
npm run dev
- ⚡ Only use lowercase, numbers, & hyphens in your subdomain
- ⚠ Do not use uppercase or special characters
To generate an API Token for a Kintone App:
- Go to the Kintone App
- Go to the Gear icon ⚙️ (top right corner) > Open the App Settings page
- Click on the App Settings Tab > Click on API Token settings
- Click the
Generate
button to generate a token - Enable the
Add records
andEdit records
checkboxes - Click the
Save
button (top left corner) to save the token setting - Finally, click the
Update App
button (top right corner) to implement the token setting change.
Confused? 🤔 → Check out the gif below:
- Using the .env.example file as a template, create a
.env
file. - Then input your Kintone credentials like the following:
VITE_SUBDOMAIN = "example"
VITE_APPID = "1"
VITE_APITOKEN = "abcdefghijklmnopqrstuvwxyz"
⚠️ DO NOT DELETE THE .env.example FILE!
.env.example is used by env-cmd to verify that .env
file is correctly configured.
Svelte is a free, open-source frontend JavaScript framework for making interactive web apps.
- Unlike React, Svelte compiles code to small, framework-less vanilla JS to optimize for speed
- Unlike React, Svelte surgically updates the DOM, so you don't have to worry about a virtual DOM diffing.
Kintone is a no-code/low-code cloud platform for teams to quickly & easily share and collaborate on their data.
You can add JavaScript, CSS, &/or HTML to enhance the frontend UI/UX of a Kintone App. This can include features such as maps, buttons, and color-coding.
Read up on how to customize and develop on the Kintone platform at kintone.dev
Here is a rundown of common problems that may occur & their solutions!
- Verify the Node.js & npm versions inside the
intro-to-svelte
folder - Just installed Node.js? Verify you configured Node.js versions inside the
intro-to-svelte
folder
- Mac:
nodenv local 14.5.0
- Windows:
nvm use 14.5.0