Installation Guide
This guide will help you install and set up Jaseci Forge CLI tool for your development environment.
Prerequisites
Before installing Jaseci Forge, ensure you have:
- Node.js 18.x or later
- npm 9.x or later (or yarn/pnpm)
- Git
Creating Your First Project
Create a new JaseciStack project:
npx create-jaseci-app my-app
During project creation, you'll be prompted to:
- Choose whether to include Storybook
- Choose whether to include React Testing Library
- Select your preferred package manager (npm/yarn/pnpm)
Cleaning Up Example App
After creating your project, you can remove the example task manager app:
cd my-app
npx create-jaseci-app cleanup
This will:
- Remove the example task manager module and its files
- Create a clean home page
- Clean up the Redux store configuration
- Prepare your app for your own modules
Development Setup
- Install dependencies:
npm install
# or
yarn
# or
pnpm install
- Start the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
- Open http://localhost:3000 in your browser.
Environment Configuration
- Copy the example environment file:
cp .env.example .env.local
- Configure your environment variables:
# API Configuration
NEXT_PUBLIC_API_URL=http://localhost:8000
# Authentication
NEXT_PUBLIC_AUTH_ENABLED=true
NEXT_PUBLIC_AUTH_PROVIDER=local
# Feature Flags
NEXT_PUBLIC_ENABLE_ANALYTICS=false
Troubleshooting
Common Issues
-
Permission Errors
# If you encounter permission errors during global installation
sudo npm install -g create-jaseci-app -
Version Conflicts
# Clear npm cache if you encounter version conflicts
npm cache clean --force -
Node Version Issues
# Check your Node.js version
node --version
# If needed, update Node.js using nvm
nvm install 18
nvm use 18
Getting Help
If you encounter any issues:
- Check the documentation
- Search existing issues
- Create a new issue if needed
Next Steps
After installation:
- Read the Quick Start Guide to learn about basic usage
- Check out the Architecture Overview to understand the project structure
- Explore the Module Creation Guide to start building your application