### Development Setup Commands Source: https://github.com/mozzius/statusphere-react/blob/main/README.md Instructions to install project dependencies, build lexicon type definitions, and start the development server for the Statusphere React application. ```bash pnpm install pnpm build:lexicon pnpm dev ``` -------------------------------- ### Run Development Commands for Statusphere Backend Source: https://github.com/mozzius/statusphere-react/blob/main/packages/appview/README.md Instructions for installing dependencies, starting development, building for production, and starting the production server using pnpm. ```bash # Install dependencies pnpm install # Start development server pnpm dev # Build for production pnpm build # Start production server pnpm start ``` -------------------------------- ### Development Commands for Statusphere React Source: https://github.com/mozzius/statusphere-react/blob/main/packages/client/README.md This snippet provides essential pnpm commands for developing the Statusphere React application. It covers installing project dependencies, starting the local development server, building the application for production deployment, and previewing the production build locally. ```bash # Install dependencies pnpm install # Start development server pnpm dev # Build for production pnpm build # Preview production build pnpm preview ``` -------------------------------- ### Additional Start Commands Source: https://github.com/mozzius/statusphere-react/blob/main/README.md Commands for starting the Statusphere React project server, the frontend development server only, or both backend and frontend separately for development purposes. ```bash pnpm start # Start the server (serves API and frontend) pnpm start:client # Start frontend development server only pnpm start:dev # Start both backend and frontend separately (development only) ``` -------------------------------- ### Production Deployment Start Command Source: https://github.com/mozzius/statusphere-react/blob/main/README.md Command to start the production server for Statusphere React, which serves API endpoints, frontend static files, and handles client-side routing. ```bash pnpm start ``` -------------------------------- ### Setup Environment Variables Source: https://github.com/mozzius/statusphere-react/blob/main/README.md Instructions to navigate to the appview directory and copy the environment variable template file to create a new .env file for configuration. ```bash cd packages/appview cp .env.template .env ``` -------------------------------- ### Create Ngrok Tunnel for Local Development Source: https://github.com/mozzius/statusphere-react/blob/main/packages/appview/README.md Command to start an ngrok HTTP tunnel to port 3001, enabling HTTPS access for OAuth development. ```bash ngrok http 3001 ``` -------------------------------- ### Update Ngrok URL in Environment Variables Source: https://github.com/mozzius/statusphere-react/blob/main/packages/appview/README.md Example of how to add the ngrok HTTPS URL to the `.env` file for the Statusphere backend. ```plaintext NGROK_URL=https://abcd-123-45-678-90.ngrok.io ``` -------------------------------- ### Update API URL in Client-Side Configuration Source: https://github.com/mozzius/statusphere-react/blob/main/packages/appview/README.md Example of how to update the `API_URL` constant in the client-side `api.ts` file to use the ngrok HTTPS URL. ```typescript const API_URL = 'https://abcd-123-45-678-90.ngrok.io'; ``` -------------------------------- ### Production Deployment Build Command Source: https://github.com/mozzius/statusphere-react/blob/main/README.md Command to build all Statusphere React project packages in the correct order (lexicon, client, appview) for production deployment. ```bash pnpm build ``` -------------------------------- ### Additional Build Commands Source: https://github.com/mozzius/statusphere-react/blob/main/README.md Commands for building different parts of the Statusphere React project, including all packages in correct order, lexicon type definitions, the frontend client, and the backend appview. ```bash pnpm build # Build in correct order: lexicon → client → appview pnpm build:lexicon # Build only the lexicon package (type definitions) pnpm build:client # Build only the frontend pnpm build:appview # Build only the backend ``` -------------------------------- ### Utility Commands Source: https://github.com/mozzius/statusphere-react/blob/main/README.md Commands for running type checking and formatting all code within the Statusphere React project to maintain code quality and consistency. ```bash pnpm typecheck # Run type checking pnpm format # Format all code ``` -------------------------------- ### Configure Environment Variables for Statusphere Backend Source: https://github.com/mozzius/statusphere-react/blob/main/packages/appview/README.md Defines the essential environment variables required for the Statusphere backend application, including development settings, database path, security secrets, and external service URLs. ```plaintext NODE_ENV=development HOST=localhost PORT=3001 DB_PATH=./data.sqlite COOKIE_SECRET=your_secret_here_at_least_32_characters_long ATPROTO_SERVER=https://bsky.social PUBLIC_URL=http://localhost:3001 NGROK_URL=your_ngrok_url_here ``` -------------------------------- ### Statusphere Backend API Endpoints Source: https://github.com/mozzius/statusphere-react/blob/main/packages/appview/README.md Lists the available REST API endpoints for the Statusphere backend, including their HTTP methods and purposes. ```APIDOC GET /oauth-client-metadata.json - OAuth client metadata GET /oauth/callback - OAuth callback endpoint POST /login - Login with handle POST /logout - Logout current user GET /user - Get current user info GET /statuses - Get recent statuses POST /status - Create a new status ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.