{"id":23726572,"url":"https://github.com/codenkoffee/travel-web-app","last_synced_at":"2026-02-08T14:33:25.053Z","repository":{"id":269280985,"uuid":"887847457","full_name":"CodeNKoffee/travel-web-app","owner":"CodeNKoffee","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-22T11:34:45.000Z","size":10694,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-30T20:14:54.653Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"EJS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodeNKoffee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-13T11:43:44.000Z","updated_at":"2024-12-22T11:34:48.000Z","dependencies_parsed_at":"2024-12-22T12:38:27.751Z","dependency_job_id":null,"html_url":"https://github.com/CodeNKoffee/travel-web-app","commit_stats":null,"previous_names":["codenkoffee/travel-web-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CodeNKoffee/travel-web-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeNKoffee%2Ftravel-web-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeNKoffee%2Ftravel-web-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeNKoffee%2Ftravel-web-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeNKoffee%2Ftravel-web-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeNKoffee","download_url":"https://codeload.github.com/CodeNKoffee/travel-web-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeNKoffee%2Ftravel-web-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29233227,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T14:18:14.570Z","status":"ssl_error","status_checked_at":"2026-02-08T14:18:14.071Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-31T00:32:12.948Z","updated_at":"2026-02-08T14:33:25.038Z","avatar_url":"https://github.com/CodeNKoffee.png","language":"EJS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# “المنتقمون: فرع شبكات مصر”\n\nTable of Contents\n\n    •\tProject Overview\n    •\tFeatures\n    •\tProject Structure\n    •\tInstallation\n    •\tConfiguration\n    •\tUsage\n    •\tTechnologies Used\n    •\tContributing\n    •\tLicense\n\nProject Overview\n\n[Your Project Name] is a web application developed using the MERN stack without React (MERN without the “R”). The project leverages HTML, CSS, JavaScript, Node.js, Express, and MongoDB Atlas. It demonstrates a well-structured web application with server-side rendering using EJS (Embedded JavaScript Templates). The project is designed to showcase core web development concepts and integrate MongoDB Atlas for backend data storage without using an ODM like Mongoose.\n\nFeatures\n\n    •\tServer-Side Rendering with EJS for dynamic content.\n    •\tRESTful API endpoints for backend communication.\n    •\tMongoDB Atlas Integration for database management.\n    •\tExpress.js routing and middleware configuration.\n    •\tStatic Assets served from the public folder.\n    •\tBasic CRUD Operations implemented for data handling.\n    •\tResponsive Design using HTML, CSS, and JavaScript.\n\nProject Structure\n\nyour-project/\n├── public/ # Static assets (CSS, JS, images)\n├── views/ # EJS templates for server-side rendering\n├── routes/ # Route handlers for different endpoints\n│ └── index.js # Main route file\n├── config/ # Configuration files (e.g., dbConfig.js)\n├── .env # Environment variables\n├── app.js # Main application file\n├── package.json # Project metadata and dependencies\n└── README.md # Project documentation\n\nInstallation\n\nTo set up the project locally, follow these steps:\n\nPrerequisites\n\nEnsure you have the following installed:\n• Node.js (v14+)\n• npm\n• MongoDB Atlas account\n\nSteps to Install\n\n    1.\tClone the Repository:\n\ngit clone https://github.com/youremail/your-project.git\ncd your-project\n\n    2.\tInstall Dependencies:\n\nRun the following command to install all required npm packages:\n\nnpm install\n\n    3.\tSet Up Environment Variables:\n\nCreate a .env file in the root directory with the following content:\n\nMONGO_URI=mongodb+srv://\u003cemail\u003e:\u003cpassword\u003e@cluster0.mongodb.net/\u003cdatabase\u003e?retryWrites=true\u0026w=majority\nPORT=3000\n\n    •\tReplace \u003cemail\u003e, \u003cpassword\u003e, and \u003cdatabase\u003e with your MongoDB Atlas credentials.\n\n    4.\tStart the Application:\n\nRun the project in development mode:\n\nnpm run dev\n\nOr in production mode:\n\nnpm start\n\n    5.\tVerify:\n\nOpen your browser and go to http://localhost:3000 to see the application in action.\n\nConfiguration\n\nEnsure your MongoDB Atlas cluster is set up with a database and collection to match your application’s needs.\n\nMongoDB Connection\n\nThe config/dbConfig.js file contains the connection logic using the MongoDB native driver.\n\nconst { MongoClient } = require('mongodb');\nconst dotenv = require('dotenv');\n\ndotenv.config();\n\nconst uri = process.env.MONGO_URI;\nconst client = new MongoClient(uri, { useNewUrlParser: true, useUnifiedTopology: true });\n\nlet db;\n\nasync function connectToDatabase() {\ntry {\nawait client.connect();\nconsole.log('Connected to MongoDB Atlas');\ndb = client.db('\u003cdatabase\u003e'); // Replace \u003cdatabase\u003e with your actual database name\n} catch (error) {\nconsole.error('Error connecting to MongoDB:', error);\n}\n}\n\nfunction getDb() {\nif (!db) {\nthrow new Error('Database not connected. Call connectToDatabase first.');\n}\nreturn db;\n}\n\nmodule.exports = { connectToDatabase, getDb };\n\nUsage\n\n    •\tRunning the server: npm run dev\n    •\tNavigating the app: Open http://localhost:3000\n\nTechnologies Used\n\n    •\tHTML, CSS, JavaScript: Frontend structure and design.\n    •\tNode.js: JavaScript runtime for backend.\n    •\tExpress.js: Web framework for routing and middleware.\n    •\tEJS: Templating engine for server-side rendering.\n    •\tMongoDB Atlas: Cloud database service for backend storage.\n    •\tdotenv: Managing environment variables securely.\n\nContributing\n\nContributions are welcome! Please fork this repository and submit a pull request.\n\nLicense\n\nThis project is licensed under the MIT License.\n\nFeel free to modify any sections or add additional details specific to your project!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodenkoffee%2Ftravel-web-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodenkoffee%2Ftravel-web-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodenkoffee%2Ftravel-web-app/lists"}