create-okto-app
is a command-line tool to quickly set up new Okto SDK projects with React or Next.js templates.
- Easy-to-use interactive CLI
- Supports React and Next.js templates
- Automatically clones template repositories
- Sets up project structure and installs dependencies
- Node.js (version 18 or higher recommended)
- npm (comes with Node.js)
- Git
You can use npx
to run create-okto-app
without installing it globally:
npx create-okto-app
Or, you can install it globally using npm:
npm install -g create-okto-app
- Open your terminal.
- Run the following command:
npx create-okto-app
-
Follow the interactive prompts:
- Choose a template (React, React Native or Next.js)
- Enter your project name
-
The tool will create a new directory with your project name, clone the appropriate template, and install dependencies.
-
Once finished, navigate to your project directory and start the development server:
cd your-project-name
npm start
- React: Uses the okto-sdk-react-template-app
- Next.js: Uses the okto-sdk-react-nextjs-starter-repo
- React Native: Uses the okto-sdk-reactnative-template-app
Contributions are welcome! Please feel free to submit a Pull Request.