create-okto-app
v1.0.2
Published
`create-okto-app` is a command-line tool to quickly set up new Okto SDK projects with React or Next.js templates.
Downloads
139
Readme
create-okto-app
create-okto-app
is a command-line tool to quickly set up new Okto SDK projects with React or Next.js templates.
Features
- Easy-to-use interactive CLI
- Supports React and Next.js templates
- Automatically clones template repositories
- Sets up project structure and installs dependencies
Prerequisites
- Node.js (version 18 or higher recommended)
- npm (comes with Node.js)
- Git
Installation
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
Usage
- 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
Templates
- 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
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.