Welcome to the MBK Tech Website repository. This repository contains the source code and documentation for the MBK Tech website, which showcases the portfolio, projects, and services offered by Muhammad Bin Khalid. The website is built using Node.js and is hosted on Vercel, providing a seamless and efficient platform for managing multiple domains and delivering content to users.
The repository includes detailed information about the website's structure, database schema, hosting architecture, and setup instructions. It also provides examples of the data models used for books, assignments, quizzes, and tickets, ensuring a comprehensive understanding of the project's backend.
Feel free to explore the code, contribute to the project, or reach out for support through the provided contact information.
The index.html file in the root directory is configured to redirect mibnekhalid.github.io to mbktech.org.
- mbktech.org
- www.mbktech.org(www redirect to main)
- unilib.mbktech.org
- privacy.mbktech.org
Detailed Documentation of this website will be available soon on: docs.mbktech.org/mbktech.org
See db.md for detailed information on the project database models, structure, and related documentation.
See file.md for detailed information on the project file structure.
This Node.js application is hosted on Vercel and handles multiple domains through a single instance. Here's how the domain routing is structured:
mbktech.org→ Served fromviews/mainPages/mainDomain/
docs.mbktech.orgproject.mbktech.org→ Served fromviews/mainPages/docDomain/
privacy.mbktech.org→ Served fromviews/mainPages/privacyDomain/
unilib.mbktech.org→ Served fromviews/mainPages/uniDomain/
api.mbktech.org→ Served fromviews/mainPages/apiDomain/
download.portal.mbktech.orgdownload.mbktech.org→ Served fromviews/mainPages/portalappDomain/
portalapp.mbktech.org→ Served fromviews/mainPages/portalappDomain/
- Clone the repository:
git clone https://github.com/MIbnEKhalid/MIbnEKhalid.github.io.git
cd MIbnEKhalid.github.io- Install dependencies:
npm install- Create a
.envfile in the root directory and add the required environment variables:
GMAIL_USER=username@gmail.com
GMAIL_PASS=your-app-password (not regular password)
DATABASE_URL=postgresql://username:password@server.domain/db_name
localenv=true
site=main
Main_SECRET_TOKEN=password
For detailed information about each environment variable, see the env.md file.
Development mode:
npm run devProduction mode:
npm startThe application will be available at http://localhost:3000
First, start the application in production mode:
npm run startThis will set process.env.localenv=false and run the build.
Then execute the test suite:
npm run testThe tests will validate API endpoints and page rendering functionality.
Note: Make sure all environment variables are properly configured before running tests.
Note: Only The Source Code Of This Website Is Covered Under The MIT License.
The Project Documentation Covered Under The Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License But Some Images, Blog Posts, And Other Content Are NOT
Covered Under This License And Remain The Intellectual Property Of The Author.
See the LICENSE file for details.
For questions or contributions, please contact Muhammad Bin Khalid at mbktech.org/Support, support@mbktech.org or chmuhammadbinkhalid28.com.
Developed by Muhammad Bin Khalid
