-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.html
More file actions
26 lines (25 loc) · 11.2 KB
/
install.html
File metadata and controls
26 lines (25 loc) · 11.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="generator" content="VuePress 2.0.0-rc.19">
<script>
(function() {
const userMode = localStorage.getItem('vuepress-reco-color-scheme') || 'auto';
const systemDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
if (userMode === 'dark' || (userMode === 'auto' && systemDarkMode)) {
document.documentElement.classList.toggle('dark', true);
}
})();
</script>
<link rel="icon" href="/suspicious_eyes.png"><title>Setting up locally | BakaCoder</title><meta name="description" content="">
<link rel="preload" href="/assets/style-C2pV2qh2.css" as="style"><link rel="stylesheet" href="/assets/style-C2pV2qh2.css">
<link rel="modulepreload" href="/assets/app--Ei2UsaZ.js"><link rel="modulepreload" href="/assets/install.html-CySHLSPB.js">
<link rel="prefetch" href="/assets/timeline.html-D09Ye9bE.js" as="script"><link rel="prefetch" href="/assets/posts.html-BAyJo9Kq.js" as="script"><link rel="prefetch" href="/assets/friendship-link.html-IM0aXw8g.js" as="script"><link rel="prefetch" href="/assets/1.html-BUZtlSTY.js" as="script"><link rel="prefetch" href="/assets/1.html-BUiA0J3Q.js" as="script"><link rel="prefetch" href="/assets/1.html-CWB8B62S.js" as="script"><link rel="prefetch" href="/assets/1.html-P5Bd4meG.js" as="script"><link rel="prefetch" href="/assets/1.html-C7AZQ9Es.js" as="script"><link rel="prefetch" href="/assets/1.html-CsrOGwIL.js" as="script"><link rel="prefetch" href="/assets/1.html-C29RnmE5.js" as="script"><link rel="prefetch" href="/assets/1.html-CWw2s1ch.js" as="script"><link rel="prefetch" href="/assets/index.html-DpJo_dxd.js" as="script"><link rel="prefetch" href="/assets/java_functional_practises.html-ByvDhFk5.js" as="script"><link rel="prefetch" href="/assets/java_8_features.html-DSzcgake.js" as="script"><link rel="prefetch" href="/assets/java_8_streams.html-B7yJIqi5.js" as="script"><link rel="prefetch" href="/assets/liskov.html-DlIY8BJF.js" as="script"><link rel="prefetch" href="/assets/scala_futures.html-DrMA1qGx.js" as="script"><link rel="prefetch" href="/assets/solid_part_2.html-1o34txU3.js" as="script"><link rel="prefetch" href="/assets/404.html-nNH8WJxW.js" as="script"><link rel="prefetch" href="/assets/Valine.min-_LyT3bfY.js" as="script"><link rel="prefetch" href="/assets/giscus-aTimukGI-DWEKOTfS.js" as="script">
</head>
<body>
<div id="app"><!--[--><div class="theme-container series--no show-catalog"><header class="navbar-container not-open"><div class="navbar-inner"><div class="site-brand nav-item"><img class="logo" src="/gintoki_logo.png" alt="BakaCoder"><a href="/" class="site-name can-hide">BakaCoder</a></div><div class="nav-item navbar-links-wrapper" style=""><div><form class="search-box" role="search"><input type="search" autocomplete="off" spellcheck="false" value><!----></form></div><nav class="navbar-links"><!--[--><div class="navbar-links__item"><a href="/" class="link" aria-label="Home"><!--[--><!--]--><span class="xicon-container left"><!--[--><!----><!--]--><span class="xicon-content" style="color:;font-size:14px;"><!--[-->Home<!--]--></span></span><!--[--><!--]--></a></div><div class="navbar-links__item"><a href="/categories/technology/1.html" class="link" aria-label="Categories"><!--[--><!--]--><span class="xicon-container left"><!--[--><!----><!--]--><span class="xicon-content" style="color:;font-size:14px;"><!--[-->Categories<!--]--></span></span><!--[--><!--]--></a></div><div class="navbar-links__item"><a href="/tags/java/1.html" class="link" aria-label="Tags"><!--[--><!--]--><span class="xicon-container left"><!--[--><!----><!--]--><span class="xicon-content" style="color:;font-size:14px;"><!--[-->Tags<!--]--></span></span><!--[--><!--]--></a></div><!--]--><!----><span class="xicon-container btn-toggle-dark-mode btn--dark-mode navbar-links__item"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewbox="0 0 32 32" style="width:20px;height:20px;font-size:20px;color:;"><path d="M15 2h2v3h-2z" fill="currentColor"></path><path d="M27 15h3v2h-3z" fill="currentColor"></path><path d="M15 27h2v3h-2z" fill="currentColor"></path><path d="M2 15h3v2H2z" fill="currentColor"></path><path d="M5.45 6.884l1.414-1.415l2.121 2.122l-1.414 1.414z" fill="currentColor"></path><path d="M23 7.58l2.121-2.12l1.414 1.414l-2.121 2.121z" fill="currentColor"></path><path d="M23.002 24.416l1.415-1.414l2.12 2.122l-1.413 1.414z" fill="currentColor"></path><path d="M5.47 25.13L7.59 23L9 24.42l-2.12 2.12l-1.41-1.41z" fill="currentColor"></path><path d="M16 8a8 8 0 1 0 8 8a8 8 0 0 0-8-8zm0 14a6 6 0 0 1 0-12z" fill="currentColor"></path></svg></span><ul class="social-links navbar-links__item"><!--[--><li class="social-item"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewbox="0 0 32 32" style="width:25px;height:25px;"><path d="M16 2a14 14 0 0 0-4.43 27.28c.7.13 1-.3 1-.67v-2.38c-3.89.84-4.71-1.88-4.71-1.88a3.71 3.71 0 0 0-1.62-2.05c-1.27-.86.1-.85.1-.85a2.94 2.94 0 0 1 2.14 1.45a3 3 0 0 0 4.08 1.16a2.93 2.93 0 0 1 .88-1.87c-3.1-.36-6.37-1.56-6.37-6.92a5.4 5.4 0 0 1 1.44-3.76a5 5 0 0 1 .14-3.7s1.17-.38 3.85 1.43a13.3 13.3 0 0 1 7 0c2.67-1.81 3.84-1.43 3.84-1.43a5 5 0 0 1 .14 3.7a5.4 5.4 0 0 1 1.44 3.76c0 5.38-3.27 6.56-6.39 6.91a3.33 3.33 0 0 1 .95 2.59v3.84c0 .46.25.81 1 .67A14 14 0 0 0 16 2z" fill-rule="evenodd" fill="currentColor"></path></svg></li><li class="social-item"><IconGithub style="width:25px;height:25px;"></IconGithub></li><!--]--></ul></nav><span class="xicon-container btn-toggle-menus"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewbox="0 0 32 32" style="width:20px;height:20px;font-size:20px;color:;"><circle cx="16" cy="8" r="2" fill="currentColor"></circle><circle cx="16" cy="16" r="2" fill="currentColor"></circle><circle cx="16" cy="24" r="2" fill="currentColor"></circle></svg></span></div></div></header><!----><!----><!----><div class="theme-main" style=""><!----><!--[--><main class="page-container"><div class="page-content"><h1 class="page-title">Setting up locally</h1><div class="page-info"><span class="xicon-container left"><!--[--><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewbox="0 0 32 32" class="xicon-icon" style="width:18px;height:18px;font-size:18px;color:;"><path d="M16 4a5 5 0 1 1-5 5a5 5 0 0 1 5-5m0-2a7 7 0 1 0 7 7a7 7 0 0 0-7-7z" fill="currentColor"></path><path d="M26 30h-2v-5a5 5 0 0 0-5-5h-6a5 5 0 0 0-5 5v5H6v-5a7 7 0 0 1 7-7h6a7 7 0 0 1 7 7z" fill="currentColor"></path></svg><!--]--><span class="xicon-content" style="color:;font-size:14px;"><!--[-->samizzy<!--]--></span></span><!----><!----><!----><!----></div><div class="theme-reco-md-content"><div><h1 id="setting-up-locally" tabindex="-1"><a class="header-anchor" href="#setting-up-locally"><span>Setting up locally</span></a></h1><h2 id="installing-node-manager-installer" tabindex="-1"><a class="header-anchor" href="#installing-node-manager-installer"><span>Installing node manager/installer</span></a></h2><p>https://github.com/Schniz/fnm?tab=readme-ov-file#installation</p><ol><li>If rust is intalled then <code>cargo install fnm</code></li><li>Enable zsh integration for fnm by adding the line <code>eval "$(fnm env --use-on-cd --shell zsh)"</code> to .zshrc</li><li>Store node version for a project in dir using <code>node --version > .node-version</code></li></ol><h2 id="installing-node" tabindex="-1"><a class="header-anchor" href="#installing-node"><span>Installing node</span></a></h2><p>https://nodejs.org/en/download</p><ol><li>Download and install Node.js <code>fnm install 22</code></li><li>Verify the Node.js version <code>node -v</code> # Should print "v22.16.0"</li><li>Download and install pnpm <code>corepack enable pnpm</code></li><li>Verify pnpm version <code>pnpm -v</code></li></ol><h2 id="setting-up-package-json" tabindex="-1"><a class="header-anchor" href="#setting-up-package-json"><span>Setting up package.json</span></a></h2><p><code>package.json</code> can be setup in 2 ways, using:</p><ol><li>https://theme-reco.vuejs.press/en/docs/guide/getting-started.html#quick-start (dont forget to choose 2.x)</li><li>https://theme-reco.vuejs.press/en/docs/guide/package-manager.html (we use pnpm so we include vue as well)</li></ol></div></div><footer class="page-meta"><div class="meta-item edit-link"><span class="xicon-container left meta-item-label"><!--[--><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewbox="0 0 32 32" class="xicon-icon" style="width:20px;height:20px;font-size:20px;color:;"><path d="M2 26h28v2H2z" fill="currentColor"></path><path d="M25.4 9c.8-.8.8-2 0-2.8l-3.6-3.6c-.8-.8-2-.8-2.8 0l-15 15V24h6.4l15-15zm-5-5L24 7.6l-3 3L17.4 7l3-3zM6 22v-3.6l10-10l3.6 3.6l-10 10H6z" fill="currentColor"></path></svg><!--]--><span class="xicon-content" style="color:;font-size:14px;"><!--[-->Edit this page<!--]--></span></span></div><div class="meta-item last-updated"><span class="xicon-container left meta-item-label"><!--[--><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewbox="0 0 32 32" class="xicon-icon" style="width:20px;height:20px;font-size:20px;color:;"><path d="M26 4h-4V2h-2v2h-8V2h-2v2H6c-1.1 0-2 .9-2 2v20c0 1.1.9 2 2 2h20c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 22H6V12h20v14zm0-16H6V6h4v2h2V6h8v2h2V6h4v4z" fill="currentColor"></path></svg><!--]--><span class="xicon-content" style="color:;font-size:14px;"><!--[-->Last Updated 6/17/2025, 12:15:43 AM<!--]--></span></span></div></footer><!----><!----></div><div class="page-catalog-container"><h5 class="tip">ON THIS PAGE</h5><ul><!--[--><!--[--><li class="page-catalog-menu-depth_2"><a aria-current="page" href="/install.html#installing-node-manager-installer" class="router-link-active router-link-exact-active link page-catalog-item page-catalog-item" aria-label="Installing node manager/installer"><!--[--><!--]--><span class="xicon-container left"><!--[--><!----><!--]--><span class="xicon-content" style="color:;font-size:14px;"><!--[-->Installing node manager/installer<!--]--></span></span><!--[--><!--]--></a></li><!--]--><!--[--><li class="page-catalog-menu-depth_2"><a aria-current="page" href="/install.html#installing-node" class="router-link-active router-link-exact-active link page-catalog-item page-catalog-item" aria-label="Installing node"><!--[--><!--]--><span class="xicon-container left"><!--[--><!----><!--]--><span class="xicon-content" style="color:;font-size:14px;"><!--[-->Installing node<!--]--></span></span><!--[--><!--]--></a></li><!--]--><!--[--><li class="page-catalog-menu-depth_2"><a aria-current="page" href="/install.html#setting-up-package-json" class="router-link-active router-link-exact-active link page-catalog-item page-catalog-item" aria-label="Setting up package.json"><!--[--><!--]--><span class="xicon-container left"><!--[--><!----><!--]--><span class="xicon-content" style="color:;font-size:14px;"><!--[-->Setting up package.json<!--]--></span></span><!--[--><!--]--></a></li><!--]--><!--]--></ul></div></main><!--]--></div></div><!--[--><!----><!----><!--]--><!--]--></div>
<script type="module" src="/assets/app--Ei2UsaZ.js" defer></script>
</body>
</html>