Quick Start
Installation
Section titled “Installation”Install NexaSpace using your preferred package manager:
# npmnpm install nexaspace
# yarnyarn add nexaspace
# pnpmpnpm add nexaspaceYour First Project
Section titled “Your First Project”Create a new NexaSpace project:
npx create-nexaspace-app my-appcd my-appnpm run devBasic Configuration
Section titled “Basic Configuration”Create a nexaspace.config.js file in your project root:
export default { // Basic configuration name: 'my-app', version: '1.0.0',
// Server settings server: { port: 3000, host: '0.0.0.0' },
// Feature flags features: { auth: true, analytics: true, caching: true }}Hello World Example
Section titled “Hello World Example”Here’s a simple NexaSpace application:
import { NexaSpace, Route } from 'nexaspace';
const app = new NexaSpace();
// Define a routeapp.get('/hello', (req, res) => { res.json({ message: 'Hello, NexaSpace!' });});
// Start the serverapp.listen(3000, () => { console.log('🚀 NexaSpace running on port 3000');});