Getting started
Tools
To get started with a JavaScript/TypeScript project you will need some basic tools.
- Node.js - JavaScript runtime, includes npm. Also covers Yarn and pnpm setup.
- IDE / Editors - VS Code and Zed setup with Vue/Nuxt extensions.
- Git - Version control commands and Beaulieu workflow.
Git — Beaulieu setup
Before working with our repositories you need to be added to the organization by an administrator. Your GitHub account must have 2FA enabled and an SSH key linked.
Configure SSH key
- On your local computer run:
ssh-keygen -t ed25519 -C "your_email@example.com"- You can leave the passphrase empty by pressing
ENTER - On Windows navigate to
%userprofile%/.sshin Explorer - If there isn't a
configfile, create it - Open it with a text editor and add:
Host github.com
User git
Hostname github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_ed25519- Open
id_ed25519.puband copy the content - Go to your GitHub account settings and click
SSH and GPG keys - Click
New SSH key, give it a title, paste the contents and clickAdd SSH key
Add project to GitHub
There are 2 ways to add a project to GitHub: initialize it in GitHub and clone it locally, or push an existing project.
Create in GitHub
- Go to our organization and click
New - Fill out the form and make sure the repository is private
- Initialize with a README, choose a
.gitignoretemplate (Node) - Don't select a license and click
Create repository - Click
Code, copy the URL, then on your computer run:
git clone {your repository url}Push existing repository to GitHub
- Initialize a git repo in your project folder:
git init- Go to our organization and click
New - Fill out the form, make sure the repository is private
- Don't initialize with a README or
.gitignore - Don't select a license and click
Create repository - In your project folder run:
git remote add origin {your repository url}
git add .
git commit -am "First commit"
git push -u origin masterESLint
ESLint statically analyzes your code to find problems. For editor integration and auto-fix on save, see IDE / Editors.
Antfu
We use Antfu's eslint config which is configured for TypeScript, JavaScript, Vue and Nuxt. It uses flat config by default and auto-detects your stack.
To install in your project:
pnpm add -D eslint @antfu/eslint-configyarn
yarn add -D eslint @antfu/eslint-confignpm
npm install -D eslint @antfu/eslint-configThen create eslint.config.mjs in the root of your project:
import antfu from '@antfu/eslint-config'
export default antfu()Typescript vs Javascript
TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale. It adds additional syntax to JavaScript to support a tighter integration with your editor and catches errors early.
What's next
Then decide if you are making a frontend or a backend project.
