import{_ast,caso,a0asa,oasr}from"./chunks/framework.P9qPzDnn.js";consth=JSON.parse('{"title":"Setting Up","description":"","frontmatter":{},"headers":[],"relativePath":"guide/getting-started/setup.md","filePath":"guide/getting-started/setup.md","lastUpdated":1737056209000}'),i={name:"guide/getting-started/setup.md"};functionl(n,e,s,p,c,u){returnr(),o("div",null,e[0]||(e[0]=[a('<h1id="setting-up"tabindex="-1">SettingUp<aclass="header-anchor"href="#setting-up"aria-label="Permalink to "Setting Up""></a></h1><p>ProfectusrequiresaNode.jsdevelopmentenvironmentforworkingonaproject.Ifyouarecomfortablewiththecommandline,alocaldevelopmentenvironmentisrecommended.</p><h2id="local-development"tabindex="-1">LocalDevelopment<aclass="header-anchor"href="#local-development"aria-label="Permalinkto"LocalDevelopment""></a></h2><p>Forlocaldevelopment,youwillneedthefollowingtools:</p><ul><li><ahref="https://git-scm.com/downloads"target="_blank"rel="noreferrer">git</a></li><li><ahref="https://nodejs.org/en/download/"target="_blank"rel="noreferrer">node</a></li></ul><p>Createanewprojectfromthe<ahref="https://code.incremental.social/profectus/Profectus"target="_blank"rel="noreferrer">Profectusrepository</a>byclickingthe"Usethistemplate"button.Then,clonetherepositorylocallyusingtheprovidedlink.</p><divclass="infocustom-block"><pclass="custom-block-title">INFO</p><p>Thetemplaterepositoryallowseasycreationofmultipleprojectsfromonerepository.However,updatinganexistingprojecttoanewerversionofProfectuscanbechallenging.Consider<ahref="./updating">updatingProfectus</a><em>before</em>startingdevelopmenttoavoidissueswithunrelatedhistories.</p></div><p>It'srecommendedtocreateanewGitbranchfordevelopment,allowingyoutopushchangeswithoutaffectingthelivebuild.Theworkflowswillautomaticallyrebuildthepagewhenyoupushittothe<code>main</code>branch.</p><p>Next,installProfectus'dependenciesbyrunning<code>npminstall</code>.Run<code>npmrundev</code>tostartalocalserverhostingyourproject.Thesitewillautomaticallyreloadasyoumodifyfiles.</p><p>Also,followthestepsto<ahref="./updating">updateProfectus</a>beforestartingtomakefutureupdateseasierwithoutworryingaboutunrelatedhistories.</p><h3id="deploying"tabindex="-1">Deploying<aclass="header-anchor"href="#deploying"aria-label="Permalinkto"Deploying""></a></h3><p>Actionsshouldbeenabledbydefaultonnewrepositories.Todeploy,pushchangestothemainbranch.Thesitewillbeupdatedautomaticallyinafewminutes.CheckprogressorerrorsfromtheActionstabonyourrepository.</p><p>Uponactioncompletion,youwillnowhavea<code>pages</code>branchwhichisautomaticallyavailableat<code>https://<YOUR_GITHUB_USERNAME>.pages.incremental.social/<YOUR_REPO_NAME>/</code>.Forexample,theTMTDemoprojecthostedat<ahref="https://code.incremental.social/profectus/TMT-Demo"target="_blank"rel="noreferrer">https://code.incremental.social/profectus/TMT-Demo</a>isavailableat<ahref="https://profectus.pages.incremental.social//TMT-Demo/"target="_blank"rel="noreferrer">https://profectus.pages.incremental.social//TMT-Demo/</a>.</p><h3id="visual-studio-code-setup"tabindex="-1">VisualStudioCodeSetup<aclass="header-anchor"href="#visual-studio-code-setup"aria-label="Permalinkto"VisualStudioCodeSetup""></a></h3><p>Ifyoudon'thaveapreferredIDE,Profectusisdevelopedin<ahref="https://code.visualstudio.com"target="_blank"rel="noreferrer">VisualStudioCode</a>andisknowntoworkwellwithit.</p><p>Recommendations:</p><ul><li>Disableemmetexpansionsbysetting<code>emmet.showExpandedAbbreviation</code>to<code>"never"</code>,alsointhepreferences</li><li>Installthe<ahref="https://marketplace.visualstudio.com/items?itemName=ZixuanChen.vitest-explorer&ssr=false#qna"target="_b