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.
Files changed (57) hide show
  1. package/.env +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +542 -0
  4. package/app.mjs +23 -0
  5. package/bin/backupnewclean.js +162 -0
  6. package/bin/mwala.mjs +176 -0
  7. package/config/createTablesetdb.mjs +38 -0
  8. package/config/createdatabase.mjs +157 -0
  9. package/config/serverConfig.mjs +1 -0
  10. package/controllers/fileController.mjs +15 -0
  11. package/controllers/homeController.mjs +28 -0
  12. package/createProject.mjs +120 -0
  13. package/migrations/20250308115724_create_users.mjs +45 -0
  14. package/migrations/20250724111240_create_transactions.mjs +19 -0
  15. package/migrations/migration_log.json +1 -0
  16. package/models/exampleModel.mjs +5 -0
  17. package/mwala +5 -0
  18. package/mwala.cmd +2 -0
  19. package/mwalajs/index.js +109 -0
  20. package/mwalajs/index.mjs +121 -0
  21. package/mwalajs/package-lock.json +836 -0
  22. package/mwalajs/package.json +16 -0
  23. package/package.json +58 -0
  24. package/public/styles.css +115 -0
  25. package/routes/homeRoutes.mjs +12 -0
  26. package/runMigrations.mjs +137 -0
  27. package/setupMwalajs.mjs +58 -0
  28. package/ujasi/README.md +542 -0
  29. package/ujasi/app.mjs +33 -0
  30. package/ujasi/bin/backupnewclean.js +162 -0
  31. package/ujasi/bin/mwala.mjs +176 -0
  32. package/ujasi/config/createTablesetdb.mjs +38 -0
  33. package/ujasi/config/createdatabase.mjs +156 -0
  34. package/ujasi/config/serverConfig.mjs +1 -0
  35. package/ujasi/controllers/fileController.mjs +15 -0
  36. package/ujasi/controllers/homeController.mjs +28 -0
  37. package/ujasi/models/exampleModel.mjs +5 -0
  38. package/ujasi/mwalajs/index.js +109 -0
  39. package/ujasi/mwalajs/index.mjs +121 -0
  40. package/ujasi/mwalajs/package-lock.json +836 -0
  41. package/ujasi/mwalajs/package.json +16 -0
  42. package/ujasi/package-lock.json +8546 -0
  43. package/ujasi/package.json +58 -0
  44. package/ujasi/public/styles.css +115 -0
  45. package/ujasi/routes/homeRoutes.mjs +12 -0
  46. package/ujasi/runMigrations.mjs +137 -0
  47. package/ujasi/setupMwalajs.mjs +58 -0
  48. package/ujasi/views/about.ejs +159 -0
  49. package/ujasi/views/index.ejs +227 -0
  50. package/ujasi/views/sitemap.xml +1 -0
  51. package/ujasi/views/steps.ejs +514 -0
  52. package/ujasi/views/welcome.ejs +257 -0
  53. package/views/about.ejs +159 -0
  54. package/views/index.ejs +227 -0
  55. package/views/sitemap.xml +1 -0
  56. package/views/steps.ejs +514 -0
  57. 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>&copy; 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>
@@ -0,0 +1,159 @@
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">
6
+ <meta name="description" content="MwalaJS is a modern framework founded by Hekima Ambalile Mwala. We offer scalable and efficient web solutions in Tanzania, with main branches in Arusha, Mbeya, and Morogoro.">
7
+ <meta name="keywords" content="MwalaJS, Framework, Software, Founder Hekima Ambalile Mwala,Hekima Mwala,Hekima,Mwala, Arusha, Tanzania, Web Solutions">
8
+ <meta name="author" content="Hekima Ambalile Mwala">
9
+ <meta property="og:title" content="About Us - MwalaJS">
10
+ <meta property="og:description" content="Discover the story behind MwalaJS, a framework created by Hekima Ambalile Mwala. We offer efficient web solutions across Tanzania with branches in Arusha, Mbeya, and Morogoro.">
11
+ <meta property="og:image" content="path-to-your-image.jpg"> <!-- Replace with your actual image link -->
12
+ <meta property="og:type" content="website">
13
+ <meta property="og:url" content="https://your-website-url.com/about-us"> <!-- Replace with your actual URL -->
14
+ <title>About Us - MwalaJS</title>
15
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css">
16
+ <style>
17
+ body {
18
+ background-color: #f4f4f9;
19
+ font-family: Arial, sans-serif;
20
+ color: #333;
21
+ }
22
+ .header-section {
23
+ background: #1e3c72;
24
+ color: white;
25
+ padding: 50px 0;
26
+ text-align: center;
27
+ }
28
+ .header-section h1 {
29
+ font-size: 36px;
30
+ font-weight: bold;
31
+ }
32
+ .content-section {
33
+ padding: 30px;
34
+ }
35
+ .contact-info {
36
+ margin-top: 20px;
37
+ font-size: 18px;
38
+ }
39
+ .contact-info a {
40
+ color: #1e3c72;
41
+ text-decoration: none;
42
+ }
43
+ .contact-info a:hover {
44
+ text-decoration: underline;
45
+ }
46
+ .team-member {
47
+ background-color: #ffffff;
48
+ padding: 20px;
49
+ border-radius: 10px;
50
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
51
+ margin-top: 30px;
52
+ }
53
+ .team-member h3 {
54
+ font-size: 24px;
55
+ font-weight: bold;
56
+ }
57
+ .team-member p {
58
+ font-size: 18px;
59
+ line-height: 1.6;
60
+ }
61
+ .location-map {
62
+ margin-top: 30px;
63
+ height: 300px;
64
+ background: #e0e0e0;
65
+ }
66
+ </style>
67
+ </head>
68
+ <body>
69
+ <!-- Navbar for easy navigation -->
70
+ <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
71
+ <div class="container-fluid">
72
+ <a class="navbar-brand" href="/">MwalaJS</a>
73
+ <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
74
+ <span class="navbar-toggler-icon"></span>
75
+ </button>
76
+ <div class="collapse navbar-collapse" id="navbarNav">
77
+ <ul class="navbar-nav">
78
+ <li class="nav-item">
79
+ <a class="nav-link active" href="steps#overview">Overview</a>
80
+ </li>
81
+ <li class="nav-item">
82
+ <a class="nav-link" href="steps#installation">Installation</a>
83
+ </li>
84
+ <li class="nav-item">
85
+ <a class="nav-link" href="steps#commands">Commands</a>
86
+ </li>
87
+ <li class="nav-item">
88
+ <a class="nav-link" href="steps#structure">Project Structure</a>
89
+ </li>
90
+ <li class="nav-item">
91
+ <a class="nav-link" href="steps#example">Example Application</a>
92
+ </li>
93
+ <li class="nav-item">
94
+ <a class="nav-link" href="steps#conclusion">Conclusion</a>
95
+ </li>
96
+ </ul>
97
+ </div>
98
+ </div>
99
+ </nav>
100
+ <div class="header-section">
101
+ <h1>About MwalaJS Framework</h1>
102
+ <p>Your reliable framework for modern applications</p>
103
+ </div>
104
+
105
+ <div class="container content-section">
106
+ <h2>Founder: Hekima Ambalile Mwala</h2>
107
+ <div class="team-member">
108
+ <h3>About the Founder</h3>
109
+ <p>Hekima Ambalile Mwala is the founder of the MwalaJS framework. He is a highly motivated and passionate software developer with a vision of creating efficient and scalable web applications. He believes in the power of technology to solve real-world problems.</p>
110
+ <p>Also work as Electronics and Telecommunication Engineer</p>
111
+ <p>you may prefer To learn Engineering and Technology in his youtube account link >> <a href="https://youtube.com/@hekimamwala?si=BSDBlBLuPFxD1YEH"> youtube chanel</a></p>
112
+ <div class="contact-info">
113
+ <p>Contact Information:</p>
114
+ <p>Phone: <a href="tel:+255747285438">0747285438</a></p>
115
+ <p>Email: <a href="mailto:hekimamwala1@gmail.com">hekimamwala1@gmail.com</a></p>
116
+ <p>Work Email: <a href="mailto:biasharaboraofficials@gmail.com">biasharaboraofficials@gmail.com</a></p>
117
+ <p>Workplace: Biashara Bora</p>
118
+ </div>
119
+ </div>
120
+
121
+ <div class="team-member">
122
+ <h3>Our Locations</h3>
123
+ <p>MwalaJS operates throughout Tanzania, with a special focus on the following key regions:</p>
124
+ <ul>
125
+
126
+ <li>Dodoma, Tanzania (Main Hub)</li>
127
+ <li>Arusha, Tanzania (Main Hub)</li>
128
+ <li>Dar Es Salaam, Tanzania (Main Branch)</li>
129
+ <li>Mbeya, Tanzania (Main Branch)</li>
130
+ <li>Morogoro, Tanzania (Main Branch)</li>
131
+ <li>SOUTH AFRICA (Main Branch)</li>
132
+ </ul>
133
+ </div>
134
+
135
+ <div class="team-member">
136
+ <h3>Get in Touch with Us</h3>
137
+ <p>For more information or any inquiries, feel free to reach out to us via the contact details mentioned above. We are committed to providing the best solutions for your business needs.</p>
138
+ </div>
139
+
140
+ <div class="location-map">
141
+
142
+ <section id="release">
143
+ <br> <h2 class="section-title">1. VERSION RELEASE</h2>
144
+ <p>Click below to download the installer For Mwalajs framework:</p>
145
+ <br><a class="btn" href="https://mwalajs.biasharabora.com/files/mwalaJS_installer.exe" download>Download MwalaJS COMMAND SHELL (CLS) download .exe file here </a>
146
+ <br> <p>Click below to download zip file mwalajs framework:</p>
147
+ <br> <a class="btn" href="https://mwalajs.biasharabora.com/files/mwalajsm.zip" download>Download MwalaJS mwalajs.zip v1.0.0</a>
148
+ <br> <p>Click below to download rar file mwalajs framework :</p>
149
+ <br> <a class="btn" href="https://mwalajs.biasharabora.com/files/mwalajsm.rar" download>Download MwalaJS mwalajs.rar v1.0.0</a>
150
+
151
+ <br>
152
+ </section>
153
+ </div>
154
+ </div>
155
+
156
+ <!-- Optional: Add a link to your sitemap -->
157
+ <link rel="sitemap" type="application/xml" href="https://mwalajs.biashrabora.com/sitemap.xml"> <!-- Replace with actual link -->
158
+ </body>
159
+ </html>
@@ -0,0 +1,227 @@
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 of the page for search engines -->
7
+ <title>MwalaJS</title>
8
+
9
+ <!-- Meta description for better SEO ranking -->
10
+ <meta name="description" content="Get detailed help and documentation for MwalaJS framework. Learn how to use MwalaJS commands, structure, installation, and more.">
11
+
12
+ <!-- Meta keywords for SEO -->
13
+ <meta name="keywords" content="MwalaJS, MVC framework, MwalaJS installation, MwalaJS commands, MwalaJS documentation, web development framework, JavaScript framework, full-stack development">
14
+
15
+ <!-- Author information -->
16
+ <meta name="author" content="Hekima Ambalile Mwala">
17
+
18
+ <!-- Open Graph meta tags for social media optimization -->
19
+ <meta property="og:title" content="MwalaJS - Help | Documentation for MVC Framework">
20
+ <meta property="og:description" content="Get detailed help and documentation for MwalaJS framework. Learn how to use MwalaJS commands, structure, installation, and more.">
21
+ <meta property="og:image" content="path-to-image.jpg"> <!-- Add your image URL for social media previews -->
22
+ <meta property="og:url" content="https://yourwebsite.com/help"> <!-- Add your actual website URL here -->
23
+
24
+ <!-- Twitter meta tags for better visibility on Twitter -->
25
+ <meta name="twitter:title" content="MwalaJS - Help | Documentation for MVC Framework">
26
+ <meta name="twitter:description" content="Get detailed help and documentation for MwalaJS framework. Learn how to use MwalaJS commands, structure, installation, and more.">
27
+ <meta name="twitter:image" content="path-to-image.jpg">
28
+ <meta name="twitter:card" content="summary_large_image">
29
+ <meta property="og:url" content="https://mwalajs.biasharabora.com">
30
+ <meta property="og:image" content="https://your-website-url.com/images/mwala-logo.png">
31
+ <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
32
+
33
+ <!-- Favicon for the website -->
34
+ <link rel="icon" href="favicon.ico" type="image/x-icon">
35
+
36
+ <!-- Link to external stylesheet -->
37
+ <link rel="stylesheet" href="styles.css">
38
+
39
+
40
+ <style>
41
+
42
+
43
+ body {
44
+ font-family: Arial, sans-serif;
45
+ margin: 0;
46
+ padding: 0;
47
+ background-color: #f4f4f4;
48
+ }
49
+
50
+ h1 {
51
+ text-align: center;
52
+ color: #333;
53
+ }
54
+
55
+ .container {
56
+ max-width: 1200px;
57
+ margin: 0 auto;
58
+ padding: 20px;
59
+ }
60
+
61
+ .help-content {
62
+ background-color: #fff;
63
+ padding: 20px;
64
+ border-radius: 8px;
65
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
66
+ }
67
+
68
+ pre {
69
+ background-color: #2d2d2d;
70
+ color: #f4f4f4;
71
+ padding: 20px;
72
+ border-radius: 8px;
73
+ white-space: pre-wrap;
74
+ word-wrap: break-word;
75
+ }
76
+
77
+ .command {
78
+ font-weight: bold;
79
+ color: #5c5c5c;
80
+ }
81
+
82
+ @media (max-width: 768px) {
83
+ body {
84
+ font-size: 14px;
85
+ }
86
+
87
+ .container {
88
+ padding: 10px;
89
+ }
90
+
91
+ pre {
92
+ padding: 15px;
93
+ }
94
+
95
+ h1 {
96
+ font-size: 1.5em;
97
+ }
98
+ }
99
+
100
+ @media (max-width: 480px) {
101
+ h1 {
102
+ font-size: 1.2em;
103
+ }
104
+
105
+ pre {
106
+ padding: 10px;
107
+ }
108
+ }
109
+ </style>
110
+ <link rel="stylesheet" href="styles.css">
111
+ <!-- Structured data for better search engine understanding (JSON-LD) -->
112
+ <script type="application/ld+json">
113
+ {
114
+ "@context": "https://schema.org",
115
+ "@type": "WebPage",
116
+ "name": "MwalaJS Help Documentation",
117
+ "description": "Get detailed help and documentation for MwalaJS framework. Learn how to use MwalaJS commands, structure, installation, and more.",
118
+ "url": "https://mwalajs.biasharabora.com/setups",
119
+ "publisher": {
120
+ "@type": "Organization",
121
+ "name": "MwalaJS"
122
+ }
123
+ }
124
+ </script>
125
+
126
+ </head>
127
+ <body>
128
+ <!-- Navbar for easy navigation -->
129
+ <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
130
+ <div class="container-fluid">
131
+ <a class="navbar-brand" href="/">MwalaJS</a>
132
+ <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
133
+ <span class="navbar-toggler-icon"></span>
134
+ </button>
135
+ <div class="collapse navbar-collapse" id="navbarNav">
136
+ <ul class="navbar-nav">
137
+ <li class="nav-item">
138
+ <a class="nav-link active" href="steps#overview">Overview</a>
139
+ </li>
140
+ <li class="nav-item">
141
+ <a class="nav-link" href="steps#installation">Installation</a>
142
+ </li>
143
+ <li class="nav-item">
144
+ <a class="nav-link" href="steps#commands">Commands</a>
145
+ </li>
146
+ <li class="nav-item">
147
+ <a class="nav-link" href="steps#structure">Project Structure</a>
148
+ </li>
149
+ <li class="nav-item">
150
+ <a class="nav-link" href="steps#example">Example Application</a>
151
+ </li>
152
+ <li class="nav-item">
153
+ <a class="nav-link" href="steps#conclusion">Conclusion</a>
154
+ </li>
155
+ </ul>
156
+ </div>
157
+ </div>
158
+ </nav>
159
+
160
+ <div class="container">
161
+ <h1>MwalaJS Framework Help</h1>
162
+ <div class="help-content">
163
+ <p>Available commands for MwalaJS framework:</p>
164
+ <pre>
165
+ . <span class="command">mwala create-project &lt;&gt;</span> - Create a new MVC project. Example: mwala create myapp
166
+ . <span class="command">mwala app.mjs</span> - Run the app.mjs file to start your application.
167
+ . <span class="command">Database Operations:&gt;</span> - Database commands for various database tasks:
168
+ - mwala create-db → Create the database specified in the .env file.
169
+ - mwala create-table <name> → Create a specific database table.
170
+ - mwala drop-table <name> → Drop a specific database table.
171
+ - mwala migrate all → Run all pending migrations.
172
+ - mwala rollback all →to undo migration
173
+ 4. <span class="command">mwala generate &lt;model/controller/route/view&gt; &lt;name&gt;</span> - Generate various MVC components (models, controllers, routes, and views).
174
+ Code Generation:
175
+ - mwala generate model <name> → Create a new model.
176
+ - mwala generate controller <name> → Create a new controller.
177
+ - mwala generate route <name> → Create a new route.
178
+ - mwala generate view <name> → Create a new view file.
179
+ - mwala generate midware <name> → Create a new middleware.
180
+ . <span class="command">mwala serve</span> - Start the server (similar to running "mwala app.mjs" or "node app.mjs").
181
+ . <span class="command">mwala help</span> - Show available commands (this command).
182
+ . <span class="command">mwala create-table &lt;table_name&gt;</span> - Create a table in the database. Example: mwala create-table users
183
+ . <span class="command">mwala drop-table &lt;table_name&gt;</span> - Drop a table from the database. Example: mwala drop-table users
184
+ . <span class="command">mwala migrate all</span> - Run migrations on the database. Example: mwala migrate
185
+ . <span class="command">mwala rollback all</span> - Rollback the last migration. Example: mwala rollback
186
+ </pre>
187
+
188
+ <section id="release">
189
+ <br> <h2 class="section-title">1. VERSION RELEASE</h2>
190
+ <p>Click below to download the installer For Mwalajs framework:</p>
191
+ <br><a class="btn" href="https://mwalajs.biasharabora.com/files/mwalaJS_installer.exe" download>Download MwalaJS COMMAND SHELL (CLS) download .exe file here </a>
192
+ <br> <p>Click below to download zip file mwalajs framework:</p>
193
+ <br> <a class="btn" href="https://mwalajs.biasharabora.com/files/mwalajsm.zip" download>Download MwalaJS mwalajs.zip v1.0.0</a>
194
+ <br> <p>Click below to download rar file mwalajs framework :</p>
195
+ <br> <a class="btn" href="https://mwalajs.biasharabora.com/files/mwalajsm.rar" download>Download MwalaJS mwalajs.rar v1.0.0</a>
196
+
197
+ <br>
198
+
199
+ </section>
200
+
201
+ </div>
202
+ </div>
203
+ <ul >
204
+ <li c>
205
+ <a class="link active" href="/welcome">MWALAJS FRAMEWORK OVERVIEW</a>
206
+ </li>
207
+ <li >
208
+ <a href="/steps">steps to get started</a>
209
+ </li>
210
+ <li class="nav-item">
211
+ <a href="steps#commands">Commands</a>
212
+ </li>
213
+ <li class="nav-item">
214
+ <a href="steps#structure">Project Structure</a>
215
+ </li>
216
+ <li class="nav-item">
217
+ <a href="steps#example">Example Application</a>
218
+ </li>
219
+ <li class="nav-item">
220
+ <a href="/about">about</a>
221
+ </li>
222
+ </ul>
223
+ </body>
224
+ </html>
225
+
226
+
227
+
@@ -0,0 +1 @@
1
+