mwalajs 1.0.1
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.
- package/.env +5 -0
- package/LICENSE +21 -0
- package/README.md +542 -0
- package/app.mjs +23 -0
- package/bin/backupnewclean.js +162 -0
- package/bin/mwala.mjs +176 -0
- package/config/createTablesetdb.mjs +38 -0
- package/config/createdatabase.mjs +157 -0
- package/config/serverConfig.mjs +1 -0
- package/controllers/fileController.mjs +15 -0
- package/controllers/homeController.mjs +28 -0
- package/createProject.mjs +120 -0
- package/migrations/20250308115724_create_users.mjs +45 -0
- package/migrations/20250724111240_create_transactions.mjs +19 -0
- package/migrations/migration_log.json +1 -0
- package/models/exampleModel.mjs +5 -0
- package/mwala +5 -0
- package/mwala.cmd +2 -0
- package/mwalajs/index.js +109 -0
- package/mwalajs/index.mjs +121 -0
- package/mwalajs/package-lock.json +836 -0
- package/mwalajs/package.json +16 -0
- package/package.json +58 -0
- package/public/styles.css +115 -0
- package/routes/homeRoutes.mjs +12 -0
- package/runMigrations.mjs +137 -0
- package/setupMwalajs.mjs +58 -0
- package/ujasi/README.md +542 -0
- package/ujasi/app.mjs +33 -0
- package/ujasi/bin/backupnewclean.js +162 -0
- package/ujasi/bin/mwala.mjs +176 -0
- package/ujasi/config/createTablesetdb.mjs +38 -0
- package/ujasi/config/createdatabase.mjs +156 -0
- package/ujasi/config/serverConfig.mjs +1 -0
- package/ujasi/controllers/fileController.mjs +15 -0
- package/ujasi/controllers/homeController.mjs +28 -0
- package/ujasi/models/exampleModel.mjs +5 -0
- package/ujasi/mwalajs/index.js +109 -0
- package/ujasi/mwalajs/index.mjs +121 -0
- package/ujasi/mwalajs/package-lock.json +836 -0
- package/ujasi/mwalajs/package.json +16 -0
- package/ujasi/package-lock.json +8546 -0
- package/ujasi/package.json +58 -0
- package/ujasi/public/styles.css +115 -0
- package/ujasi/routes/homeRoutes.mjs +12 -0
- package/ujasi/runMigrations.mjs +137 -0
- package/ujasi/setupMwalajs.mjs +58 -0
- package/ujasi/views/about.ejs +159 -0
- package/ujasi/views/index.ejs +227 -0
- package/ujasi/views/sitemap.xml +1 -0
- package/ujasi/views/steps.ejs +514 -0
- package/ujasi/views/welcome.ejs +257 -0
- package/views/about.ejs +159 -0
- package/views/index.ejs +227 -0
- package/views/sitemap.xml +1 -0
- package/views/steps.ejs +514 -0
- package/views/welcome.ejs +257 -0
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>MwalaJS - High-Performance Framework</title>
|
|
7
|
+
<link rel="stylesheet" href="styles.css">
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<!DOCTYPE html>
|
|
14
|
+
<html lang="en">
|
|
15
|
+
<head>
|
|
16
|
+
<meta charset="UTF-8">
|
|
17
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
18
|
+
<meta name="description" content="MwalaJS - A high-performance JavaScript framework for Node.js and Express based on the V8 engine.">
|
|
19
|
+
<meta name="keywords" content="MwalaJS, Node.js, Express, high-performance framework, JavaScript, V8 engine, MVC, migrations">
|
|
20
|
+
<meta name="author" content="Hekima Ambalile Mwala">
|
|
21
|
+
|
|
22
|
+
<title>MwalaJS - Documentation</title>
|
|
23
|
+
|
|
24
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css">
|
|
25
|
+
<link rel="icon" href="https://yourwebsite.com/favicon.ico" type="image/x-icon">
|
|
26
|
+
|
|
27
|
+
<style>
|
|
28
|
+
body {
|
|
29
|
+
background-color: #f4f4f4;
|
|
30
|
+
font-family: Arial, sans-serif;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.navbar {
|
|
34
|
+
background-color: #1e3c72;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.navbar-brand, .nav-link {
|
|
38
|
+
color: white !important;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.header-section {
|
|
42
|
+
background: linear-gradient(135deg, #1e3c72, #2a5298);
|
|
43
|
+
color: white;
|
|
44
|
+
padding: 50px 0;
|
|
45
|
+
text-align: center;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.header-section h1 {
|
|
49
|
+
font-size: 36px;
|
|
50
|
+
font-weight: bold;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.content-section {
|
|
54
|
+
padding: 30px;
|
|
55
|
+
background-color: #ffffff;
|
|
56
|
+
border-radius: 10px;
|
|
57
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
58
|
+
margin: 20px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
pre {
|
|
62
|
+
background-color: #2d2d2d;
|
|
63
|
+
color: #f4f4f4;
|
|
64
|
+
padding: 15px;
|
|
65
|
+
border-radius: 8px;
|
|
66
|
+
overflow-x: auto;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.footer {
|
|
70
|
+
text-align: center;
|
|
71
|
+
padding: 20px;
|
|
72
|
+
background-color: #1e3c72;
|
|
73
|
+
color: white;
|
|
74
|
+
margin-top: 20px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* Responsive adjustments */
|
|
78
|
+
@media (max-width: 768px) {
|
|
79
|
+
.header-section h1 {
|
|
80
|
+
font-size: 28px;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
</style>
|
|
84
|
+
</head>
|
|
85
|
+
<body>
|
|
86
|
+
|
|
87
|
+
<!-- Navbar -->
|
|
88
|
+
<nav class="navbar navbar-expand-lg navbar-dark">
|
|
89
|
+
<div class="container">
|
|
90
|
+
<a class="navbar-brand" href="/">MwalaJS</a>
|
|
91
|
+
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
|
|
92
|
+
<span class="navbar-toggler-icon"></span>
|
|
93
|
+
</button>
|
|
94
|
+
<div class="collapse navbar-collapse" id="navbarNav">
|
|
95
|
+
<ul class="navbar-nav ms-auto">
|
|
96
|
+
<li class="nav-item"><a class="nav-link" href="#overview">Overview</a></li>
|
|
97
|
+
<li class="nav-item"><a class="nav-link" href="#installation">Installation</a></li>
|
|
98
|
+
<li class="nav-item"><a class="nav-link" href="#commands">Commands</a></li>
|
|
99
|
+
<li class="nav-item"><a class="nav-link" href="#structure">Project Structure</a></li>
|
|
100
|
+
<li class="nav-item"><a class="nav-link" href="#example">Example</a></li>
|
|
101
|
+
<li class="nav-item"><a class="nav-link" href="#conclusion">Conclusion</a></li>
|
|
102
|
+
</ul>
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
</nav>
|
|
106
|
+
|
|
107
|
+
<!-- Header Section -->
|
|
108
|
+
<section class="header-section">
|
|
109
|
+
<div class="container">
|
|
110
|
+
<h1>Welcome to MwalaJS Documentation</h1>
|
|
111
|
+
<p>A high-performance framework for JavaScript, Node.js, and Express.</p>
|
|
112
|
+
</div>
|
|
113
|
+
</section>
|
|
114
|
+
|
|
115
|
+
<!-- Content Sections -->
|
|
116
|
+
<div class="container">
|
|
117
|
+
<div class="content-section" id="overview">
|
|
118
|
+
<h2>Overview of MwalaJS</h2>
|
|
119
|
+
<p>MwalaJS is an advanced web development framework that uses the **Google V8 engine** to enhance the performance of JavaScript applications.</p>
|
|
120
|
+
</div>
|
|
121
|
+
|
|
122
|
+
<div class="content-section" id="installation">
|
|
123
|
+
<h2>Installation</h2>
|
|
124
|
+
<p>To install MwalaJS, use the following command:</p>
|
|
125
|
+
<pre><code class="command">npm install -g mwalajs</code></pre>
|
|
126
|
+
</div>
|
|
127
|
+
|
|
128
|
+
<div class="content-section" id="commands">
|
|
129
|
+
<h2>Basic Commands</h2>
|
|
130
|
+
<p>Here are some useful MwalaJS commands:</p>
|
|
131
|
+
<pre><code class="command">
|
|
132
|
+
# Create a new project
|
|
133
|
+
mwala new project_name
|
|
134
|
+
|
|
135
|
+
# Start the development server
|
|
136
|
+
mwala serve
|
|
137
|
+
|
|
138
|
+
# Run migrations
|
|
139
|
+
mwala migrate
|
|
140
|
+
</code></pre>
|
|
141
|
+
</div>
|
|
142
|
+
|
|
143
|
+
<div class="content-section" id="structure">
|
|
144
|
+
<h2>Project Structure</h2>
|
|
145
|
+
<pre><code>
|
|
146
|
+
/project_name
|
|
147
|
+
├── controllers/
|
|
148
|
+
├── models/
|
|
149
|
+
├── views/
|
|
150
|
+
├── routes/
|
|
151
|
+
├── public/
|
|
152
|
+
├── config/
|
|
153
|
+
├── index.js
|
|
154
|
+
</code></pre>
|
|
155
|
+
</div>
|
|
156
|
+
|
|
157
|
+
<div class="content-section" id="example">
|
|
158
|
+
<h2>Example Application</h2>
|
|
159
|
+
<p>Below is a simple **Hello World** example using MwalaJS:</p>
|
|
160
|
+
<pre><code>
|
|
161
|
+
const Mwala = require('mwalajs');
|
|
162
|
+
const app = new Mwala();
|
|
163
|
+
|
|
164
|
+
app.get('/', (req, res) => {
|
|
165
|
+
res.send('Hello, World!');
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
app.listen(3000, () => console.log('Server running on port 3000'));
|
|
169
|
+
</code></pre>
|
|
170
|
+
</div>
|
|
171
|
+
|
|
172
|
+
<div class="content-section" id="conclusion">
|
|
173
|
+
<h2>Conclusion</h2>
|
|
174
|
+
<p>MwalaJS is a powerful, high-performance framework that simplifies web development with Node.js and Express. Whether you're building small apps or enterprise solutions, MwalaJS provides scalability and efficiency.</p>
|
|
175
|
+
</div>
|
|
176
|
+
</div>
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
<section>
|
|
182
|
+
<h1>MwalaJS - High-Performance Web Framework</h1>
|
|
183
|
+
<p>A powerful, efficient, and scalable framework built on the Google <strong>V8 Engine</strong>.</p>
|
|
184
|
+
</section>
|
|
185
|
+
|
|
186
|
+
<section class="overview">
|
|
187
|
+
<h2>🚀 Overview of MwalaJS</h2>
|
|
188
|
+
<p>MwalaJS is a high-speed framework designed for <strong>JavaScript, Node.js, and Express</strong>.
|
|
189
|
+
With its integration of the <strong>Google V8 engine</strong>, it ensures your applications run efficiently,
|
|
190
|
+
making web development <em>faster, smoother, and more scalable</em>.</p>
|
|
191
|
+
</section>
|
|
192
|
+
|
|
193
|
+
<section class="features">
|
|
194
|
+
<h2> Core Features of MwalaJS</h2>
|
|
195
|
+
<ul>
|
|
196
|
+
<li><strong> High Performance:</strong> Uses the <em>Google V8 engine</em> for rapid execution.</li>
|
|
197
|
+
<li><strong> ES6 & .mjs Support:</strong> Cleaner, modular JavaScript code.</li>
|
|
198
|
+
<li><strong> Full Database Migrations:</strong> Inspired by Laravel & Django for seamless schema updates.</li>
|
|
199
|
+
<li><strong> MVC Architecture:</strong> Organized application structure.</li>
|
|
200
|
+
<li><strong> Node.js & Express Integration:</strong> Enhanced backend functionalities.</li>
|
|
201
|
+
<li><strong> Cross-Platform Compatibility:</strong> Runs on Windows, macOS, and Linux.</li>
|
|
202
|
+
<li><strong> Security:</strong> Built-in measures to safeguard applications.</li>
|
|
203
|
+
<li><strong> Open Source & Community Driven:</strong> Regular updates and contributions.</li>
|
|
204
|
+
</ul>
|
|
205
|
+
</section>
|
|
206
|
+
|
|
207
|
+
<section class="why-mwala">
|
|
208
|
+
<h2> Why Choose MwalaJS?</h2>
|
|
209
|
+
<ul>
|
|
210
|
+
<li><strong> Speed:</strong> Powered by V8 for lightning-fast performance.</li>
|
|
211
|
+
<li><strong> Efficiency:</strong> Optimized for maintainability and scalability.</li>
|
|
212
|
+
<li><strong> Scalability:</strong> From small apps to enterprise-level projects.</li>
|
|
213
|
+
<li><strong> Rapid Development:</strong> Built-in support for migrations, MVC, and modern JS features.</li>
|
|
214
|
+
<li><strong> Developer-Friendly:</strong> Minimal setup, easy-to-follow documentation.</li>
|
|
215
|
+
</ul>
|
|
216
|
+
</section>
|
|
217
|
+
|
|
218
|
+
<section class="getting-started">
|
|
219
|
+
<h2>🛠 Getting Started with MwalaJS</h2>
|
|
220
|
+
<p>Follow these steps to start using MwalaJS:</p>
|
|
221
|
+
|
|
222
|
+
<h3> Step 1: Download the Setup</h3>
|
|
223
|
+
|
|
224
|
+
<section id="release">
|
|
225
|
+
<br> <h2 class="section-title">1. VERSION RELEASE</h2>
|
|
226
|
+
<p>Click below to download the installer For Mwalajs framework:</p>
|
|
227
|
+
<br><a class="btn" href="https://mwalajs.biasharabora.com/files/mwalaJS_installer.exe" download>Download MwalaJS COMMAND SHELL (CLS) download .exe file here </a>
|
|
228
|
+
<br> <p>Click below to download zip file mwalajs framework:</p>
|
|
229
|
+
<br> <a class="btn" href="https://mwalajs.biasharabora.com/files/mwalajsm.zip" download>Download MwalaJS mwalajs.zip v1.0.0</a>
|
|
230
|
+
<br> <p>Click below to download rar file mwalajs framework :</p>
|
|
231
|
+
<br> <a class="btn" href="https://mwalajs.biasharabora.com/files/mwalajsm.rar" download>Download MwalaJS mwalajs.rar v1.0.0</a>
|
|
232
|
+
|
|
233
|
+
<br>
|
|
234
|
+
</section>
|
|
235
|
+
|
|
236
|
+
<h3> Step 2: Set Up Your Environment</h3>
|
|
237
|
+
<p>Follow the on-screen instructions to complete the installation. MwalaJS is compatible with all major operating systems.</p>
|
|
238
|
+
|
|
239
|
+
<h3> Step 3: Read the Documentation</h3>
|
|
240
|
+
<p>Visit our <a href="#">official documentation</a> to explore features, tutorials, and guides.</p>
|
|
241
|
+
</section>
|
|
242
|
+
|
|
243
|
+
<section class="conclusion">
|
|
244
|
+
<h2> Conclusion</h2>
|
|
245
|
+
<p>MwalaJS is a game-changer in modern web development. Whether you're building small web applications or enterprise systems, MwalaJS offers unmatched performance, security, and scalability. <br><br>
|
|
246
|
+
Start building the future of web development today! 🚀</p>
|
|
247
|
+
</section>
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
<!-- Footer -->
|
|
251
|
+
<footer class="footer">
|
|
252
|
+
<p>© 2025 MwalaJS | Built with by Hekima Ambalile Mwala</p>
|
|
253
|
+
</footer>
|
|
254
|
+
|
|
255
|
+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
|
256
|
+
</body>
|
|
257
|
+
</html>
|