baraqex 1.0.67 → 1.0.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,41 +2,28 @@
2
2
  PORT=3000
3
3
  NODE_ENV=development
4
4
 
5
- # Authentication
6
- JWT_SECRET=your-super-secret-jwt-key-change-in-production
7
- JWT_EXPIRES_IN=7d
5
+ # Database Configuration (Optional)
6
+ # Uncomment and configure the database you want to use
8
7
 
9
- # Database Configuration (optional)
10
- # DATABASE_URL=mongodb://localhost:27017/fullstack_app
8
+ # MongoDB
9
+ # DATABASE_URL=mongodb://localhost:27017/baraqex-app
11
10
  # DATABASE_TYPE=mongodb
12
11
 
13
- # For PostgreSQL:
14
- # DATABASE_URL=postgresql://username:password@localhost:5432/fullstack_app
15
- # DATABASE_TYPE=postgres
16
-
17
- # For MySQL:
18
- # DATABASE_URL=mysql://username:password@localhost:3306/fullstack_app
12
+ # MySQL
13
+ # DATABASE_URL=mysql://username:password@localhost:3306/baraqex_app
19
14
  # DATABASE_TYPE=mysql
20
15
 
21
- # Frontend URL (for CORS in production)
22
- FRONTEND_URL=http://localhost:3000
23
-
24
- # Session Configuration
25
- SESSION_SECRET=your-session-secret-key
26
-
27
- # Email Configuration (for future features)
28
- # SMTP_HOST=smtp.gmail.com
29
- # SMTP_PORT=587
30
- # SMTP_USER=your-email@gmail.com
31
- # SMTP_PASS=your-app-password
16
+ # PostgreSQL
17
+ # DATABASE_URL=postgresql://username:password@localhost:5432/baraqex_app
18
+ # DATABASE_TYPE=postgres
32
19
 
33
- # File Upload Configuration
34
- MAX_FILE_SIZE=5MB
35
- UPLOAD_DIR=uploads
20
+ # Authentication (Optional)
21
+ # JWT_SECRET=your-super-secret-jwt-key-change-this-in-production
22
+ # JWT_EXPIRES_IN=7d
36
23
 
37
- # Redis Configuration (for caching/sessions)
38
- # REDIS_URL=redis://localhost:6379
24
+ # CORS Configuration (Optional)
25
+ # FRONTEND_URL=http://localhost:3000
39
26
 
40
27
  # API Rate Limiting
41
- RATE_LIMIT_WINDOW_MS=900000
42
- RATE_LIMIT_MAX_REQUESTS=100
28
+ # RATE_LIMIT_WINDOW_MS=900000
29
+ # RATE_LIMIT_MAX_REQUESTS=100
@@ -1,52 +1,16 @@
1
- # Fullstack Baraqex Application
1
+ # Baraqex Fullstack Template
2
2
 
3
- A complete fullstack application template built with the Baraqex framework, featuring authentication, API integration, and modern development practices.
3
+ A complete fullstack application template built with Baraqex framework, featuring both frontend and backend capabilities.
4
4
 
5
5
  ## 🚀 Features
6
6
 
7
- - **Full-Stack Architecture**: Complete frontend and backend integration
8
- - **Authentication System**: JWT-based auth with login/register
9
- - **RESTful API**: Well-structured API endpoints with middleware
10
- - **Database Support**: MongoDB, MySQL, and PostgreSQL options
11
- - **Real-time Updates**: Modern state management
12
- - **Security**: Built-in security headers, rate limiting, CORS
13
- - **Developer Experience**: Hot reload, TypeScript, ESLint, Prettier
14
- - **Production Ready**: Environment configuration, logging, error handling
15
-
16
- ## 📋 Prerequisites
17
-
18
- - Node.js 16+
19
- - npm, yarn, or pnpm
20
- - Database (optional - works with in-memory storage for demo)
21
-
22
- ## 🛠️ Quick Start
23
-
24
- 1. **Install dependencies**
25
- ```bash
26
- npm install
27
- ```
28
-
29
- 2. **Environment setup**
30
- ```bash
31
- cp .env.example .env
32
- # Edit .env with your configuration
33
- ```
34
-
35
- 3. **Start development server**
36
- ```bash
37
- npm run dev
38
- ```
39
-
40
- 4. **Open your browser**
41
- - Frontend: http://localhost:3000
42
- - API: http://localhost:3000/api
43
- - API Docs: http://localhost:3000/api-docs
44
-
45
- ## 🎯 Default Credentials
46
-
47
- For demo purposes, you can login with:
48
- - **Username**: `admin` or `user`
49
- - **Password**: `password`
7
+ - **Server-Side Rendering (SSR)** - Fast initial page loads with SEO benefits
8
+ - **API Routes** - Built-in API endpoint handling with Express.js
9
+ - **Database Integration** - Support for MongoDB, MySQL, and PostgreSQL
10
+ - **Authentication** - JWT-based authentication system
11
+ - **File-based Routing** - Automatic route generation based on file structure
12
+ - **TypeScript Support** - Full TypeScript support out of the box
13
+ - **Hot Reload** - Development server with hot reload capabilities
50
14
 
51
15
  ## 📁 Project Structure
52
16