{"id":18989145,"url":"https://github.com/miguel98r/project2pug","last_synced_at":"2025-04-22T11:06:03.257Z","repository":{"id":65487932,"uuid":"591145561","full_name":"Miguel98R/project2Pug","owner":"Miguel98R","description":"html template converter to templates with pug as view engine","archived":false,"fork":false,"pushed_at":"2023-04-26T19:28:14.000Z","size":1015,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-16T22:09:10.360Z","etag":null,"topics":["bootstrap","expressjs","html","htmltopug","javascript","jquery","mongo","nodejs","pug"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Miguel98R.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-20T02:34:59.000Z","updated_at":"2025-04-09T11:02:47.000Z","dependencies_parsed_at":"2024-11-08T17:15:36.623Z","dependency_job_id":null,"html_url":"https://github.com/Miguel98R/project2Pug","commit_stats":{"total_commits":54,"total_committers":3,"mean_commits":18.0,"dds":0.4629629629629629,"last_synced_commit":"1dd08dd03c42c7a96bc1fc8a348cefd910174bb2"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miguel98R%2Fproject2Pug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miguel98R%2Fproject2Pug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miguel98R%2Fproject2Pug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Miguel98R%2Fproject2Pug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Miguel98R","download_url":"https://codeload.github.com/Miguel98R/project2Pug/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250227239,"owners_count":21395728,"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":["bootstrap","expressjs","html","htmltopug","javascript","jquery","mongo","nodejs","pug"],"created_at":"2024-11-08T17:05:24.563Z","updated_at":"2025-04-22T11:06:03.189Z","avatar_url":"https://github.com/Miguel98R.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\u003cimg  src=\"public/img/logo.png\" /\u003e\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\u003cem\u003ehtml template converter to templates with pug as view engine \u003c/em\u003e\u003c/div\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\nSet a folder where the files to be found will be to be the input directory, so set a folder for the output files\n\nExample of directory paths to enter:\n- Input directory : /home/mike98/Desktop/html_files\n- Output Directory : /home/mike98/Desktop/pug_files\n\n---\n# Install\n\n```\ngit clone https://github.com/Miguel98R/project2Pug.git\n```\n\n```\nnpm install\n```\n\n```\nnpm run dev\n```\n\n\n# Install by npm\n\ncan also install the converter by npm\n\ncommand:\n```\nnpm i -g project2_pug\n```\nstart converter interface\n\ncommand:\n```\ngui\n```\nexample usage:\n```\nproject2_pug gui\n```\n\nThen visit http://localhost:3008/*\n\n*By default start on port 3008 , this can be modified in the index.js file\n\n---\n# Convert CLI mode\n\nAlso has the option to convert your html template to pug via CLI\n\n\ncommand:\n```\nconvert\n```\noptions:\n```\n-i, --inDirectory \u003cinDirectory...\u003e    location of the folder where the files to be converted are\n-o, --OutDirectory \u003cOutDirectory...\u003e  location of the folder where the converted files will be saved\n```\n\nexample usage:\n```\nproject2_pug convert -i \"/home/mike98/Desktop/html_files\" -o \"/home/mike98/Desktop/pug_files\"\n```\n\ninstall node modules and start the server in the output folder\n\ncommand:\n```\nstart_dev\n```\nexample usage:\n```\nproject2_pug start_dev\n```\n\n\n\n---\n# Initializing template converted\n\nOnce you have converted the template, you will notice that a structure has been created for your project ,\nan api-rest based on js express and a database connection in mongo db, this to help in the process of creating projects\n\nConverted views to pug are located in the views folder and static/library files are located in the public folder\n\nto initialize the project simply install the node modules and run the dev command\n\n\n```\nnpm install\n```\n\n```\nnpm run dev\n```\n\nin the CLI section, the command to install the node modules and start the server in the output folder is shown\n\nThe project to be launched on port 3055 , this can be modified in the index.js of your output folder  \nThen visit  http://localhost:3055 *\n\n\nNote: if in your template static files are in an **assets** folder, this folder will be saved in the **public** folder just move the contents to the root of the **public** folder for your template to work properly\n\n---\n\n\u003ch4 align=\"center\"\u003eMike Rosas © 2023  | project2Pug v1.0.9\u003c/h4\u003e\n\u003ch4 align=\"center\"\u003eDeveloped by: Jose Miguel Rosas Jimenez\u003c/h4\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiguel98r%2Fproject2pug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiguel98r%2Fproject2pug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiguel98r%2Fproject2pug/lists"}