{"id":24886716,"url":"https://github.com/elenaches/node-js-express-mvc-web-app","last_synced_at":"2025-09-13T21:03:24.292Z","repository":{"id":65929509,"uuid":"580032710","full_name":"ElenaChes/Node-Js-Express-MVC-Web-App","owner":"ElenaChes","description":"A college project in Node JS using Express and MongoDB, a basic \"travel agency\" website with permission management and two user types.","archived":false,"fork":false,"pushed_at":"2024-10-13T18:08:13.000Z","size":636,"stargazers_count":3,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-21T11:39:48.768Z","etag":null,"topics":["college-project","ejs","express-mvc","expressjs","mongodb","mvc","nodejs","nodejs-webapp","webapp","website"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ElenaChes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-12-19T14:52:50.000Z","updated_at":"2024-10-13T18:08:17.000Z","dependencies_parsed_at":"2024-01-17T21:22:49.289Z","dependency_job_id":"d57df1ac-7ad5-4b04-97c9-81f2dae8eed3","html_url":"https://github.com/ElenaChes/Node-Js-Express-MVC-Web-App","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElenaChes%2FNode-Js-Express-MVC-Web-App","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElenaChes%2FNode-Js-Express-MVC-Web-App/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElenaChes%2FNode-Js-Express-MVC-Web-App/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElenaChes%2FNode-Js-Express-MVC-Web-App/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ElenaChes","download_url":"https://codeload.github.com/ElenaChes/Node-Js-Express-MVC-Web-App/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236677539,"owners_count":19187477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["college-project","ejs","express-mvc","expressjs","mongodb","mvc","nodejs","nodejs-webapp","webapp","website"],"created_at":"2025-02-01T15:16:04.043Z","updated_at":"2025-02-01T15:16:04.953Z","avatar_url":"https://github.com/ElenaChes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MVC Web app\n \n\u003cimg align=\"right\" style=\"width:200px; height:auto;\" src=\"/public/images/favicon.ico\"\u003e\n\nA college project in Node JS using Express and MongoDB.\u003cbr\u003e\nDescription: a basic \"travel agency\" website with permission management and two user types.\u003cbr\u003e\n\n\u003ctable align=\"center\"\u003e\n   \u003cthead\u003e\n   \u003ctr\u003e\n      \u003ctd colspan=\"2\" align=\"center\"\u003eCollaborators\u003c/td\u003e\n   \u003c/tr\u003e\n   \u003c/thead\u003e\n   \u003ctbody\u003e\n   \u003ctr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/ElenaChes\"\u003e@ElenaChes\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/RoeiHarfi\"\u003e@RoeiHarfi\u003c/a\u003e\u003c/td\u003e\n      \u003c/tr\u003e\n      \u003ctd\u003e\n         \u003ca href=\"https://github.com/ElenaChes\"\u003e\u003cimg src=\"https://github.com/ElenaChes.png?size=115\" width=100 /\u003e\u003c/a\u003e\n      \u003c/td\u003e\n      \u003ctd\u003e\n         \u003ca href=\"https://github.com/RoeiHarfi\"\u003e\u003cimg src=\"https://github.com/RoeiHarfi.png?size=115\" width=100 /\u003e\u003c/a\u003e\n      \u003c/td\u003e\n   \u003c/tr\u003e\n   \u003c/tbody\u003e\n\u003c/table\u003e\n\u003cdetails\u003e\n\n  \u003csummary\u003e\u003ch3\u003eContent\u003c/h3\u003e\u003c/summary\u003e\n\n- [Installation](#installation)\n- [Usage](#usage)\n\n\u003c/details\u003e\n\u003chr\u003e\n\n# Installation\n\n1. Open a MongoDB project if you don't have one.\n2. Create a `.env` file and paste your MongoDB connection string in it, the file should look like this:\n\n```\nDB=mongodb+srv://\u003cUSERNAME\u003e:\u003cPASSWORD\u003e@\u003cCLUSTER\u003e.mongodb.net/?retryWrites=true\u0026w=majority\n```\n\n3. Create users in your MongoDB database according to the schema in `database/account.js`.\u003cbr\u003eFor example:\n\n\u003cimg align=\"right\" style=\"width:450px; height:auto;\" src=\"https://github.com/ElenaChes/Node-Js-Express-MVC-Web-App/assets/54331769/87d71734-4300-4a1a-911d-e02e5fd6de9a\"\u003e\n\n```\nusername: \"admin\"\npassword: \"admin1\"\npermissions: \"admin\"\n```\n\n```\nusername: \"bob\"\npassword: \"bob1\"\npermissions: \"user\"\nIDnumber: \"123456789\"\ncardNumber: \"6789678967896789\"\nfullName: \"Bob Bobby\"\n```\n\n\u003cimg align=\"right\" style=\"width:450px; height:auto;\" src=\"https://github.com/ElenaChes/Node-Js-Express-MVC-Web-App/assets/54331769/e0096097-8c64-45aa-9951-42cdca488e9b\"\u003e\n\n```\nusername: \"david\"\npassword: \"david1\"\npermissions: \"user\"\n```\n\n4. Change \"autoOpen\" in `app.js` to your preferred launch method.\n5. Run `npm i`.\n6. Start `app.js`.\n\n# Usage\n\n1. Login to your preferred user.\n2. Admin users can:\n   - adjust the seat amount of each plane. (don't ask, college requirement)\n   - edit, delete and creates flights.\n3. Regular users can:\n   - view existing flights, sort and filter flights.\n   - book tickets for available flights.\n   - have the app insert their payment details from the database (if they exist).\n   - or input a card manually to \"pay\" for the flight.\n\n\u003e [!NOTE]\n\u003e The app doesn't check for card validity and doesn't try to make a transaction.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felenaches%2Fnode-js-express-mvc-web-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felenaches%2Fnode-js-express-mvc-web-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felenaches%2Fnode-js-express-mvc-web-app/lists"}