React (JavaScript)
A JavaScript Discord Activity template using React.
React (JavaScript)
Welcome to your fresh Robo.js project!
Build, deploy, and maintain your Discord Activities with ease. With Robo.js as your guide, you'll experience a seamless, file-based setup, an integrated database, and a rich ecosystem.
Getting Started
Create a project with this template:
npx create-robo@next <project-name> --template discord-activities/react-jsThen navigate into your project directory:
cd <project-name>Run development mode:
npm run devA free Cloudflare tunnel is included for easy testing.
Beginner Guide
New to Discord Activities with Robo? Start here!
Run Modes
Define profiles for your Robo session.
App Development
You can find your client-side code in the /src/app folder. This is where you can build your web app using React.
Things are powered by Vite under the hood, so you get the latest ES modules, hot module reloading, and more!
Backend Development
Your server-side code is located in the /src/api folder. This is where you can build your API, webhooks, and other server-side features.
This backend is powered by @robojs/server.
export default () => {
return { status: 'ok' }
}export default () => {
return { status: 'ok' }
}Hosting
npm run deployRoboPlay
Deploy with as little as one command.
Self-Hosting
Learn how to host and maintain it yourself.
