-
Notifications
You must be signed in to change notification settings - Fork 3
Development environment setup
Hello prospective carrot! π
Thanks for considering collaborating with us in making Carrot the best JavaScript library for AI in the world π
To help you get started we've curated a list of guides and steps to follow. Please take some time to read them and feel free to reach out with any questions you might have: [email protected]
π‘ Why it's useful
To access open source code, edit code, run it, and do almost anything related to development you'll be using the terminal.
π More info
Terminals, also known as command lines or consoles, allow us to send simple text commands to our computer to do things like navigate through a directory (folder) or copy a file, and form the basis for more complex automation and programming skills.
Mac
π How to use terminal on mac
Windows
π How do I open terminal in windows?
Ubuntu Linux
π How do I open a terminal?
| * | π Learn more | * |
|---|---|---|
| - | π₯ Beginner's Guide to the Bash Terminal -> OS: Linux | - |
π‘ Why it's useful
SSH Keys are a good way to connect to things through your terminal
π More info
SSH Keys are like passwords, don't share them!
Mac & Linux
π‘ Why it's useful
TBD
π More info
TBD
π Adding a new SSH key to your GitHub account
π€ Having trouble? Make sure to choose your operating system

π‘ Why it's useful
Git helps you save your code changes and makes sure you can go back to a previous version if things go wrong
π More info
Git is a version control system. Version control systems are a category of software tools that help a software team manage changes to source code over time. Version control software keeps track of every modification to the code in a special kind of database. source (adapted)
Ubuntu Linux
π Use "Installing Git with Default Packages"
π Install Git on Ubuntu 18.04
| * | π Learn more | * |
|---|---|---|
| - | - |
π‘ Why it's useful
TBD
π More info
TBD
π Use "Setting your git username for every repository"
π Setting your git username
To check that it worked copy this into your terminal
Linux
cat ~/.gitconfig
Windows
get-content TBD
π‘ Why it's useful
TBD
π More info
TBD
We'll be editing the .gitconfig file directly to save some typing
-
Copy this into your terminal
git config --edit --global -
Copy this on a newline immediately after your last
[user]setting[push] default = simple [core] autocrlf = input [alias] s = status -s lg = log --oneline --decorate --graph g = grep --break --heading --line-number [pull] rebase = true
Extra
π‘ Why it's useful
TBD
π More info
TBD
-
Read this: π How-to: fork a repo
-
When cloning use your fork URL:
[email protected]:YOUR-USERNAME/carrot.git
π‘ Why it's useful
This keeps your local copy of the
carrotcode synced with the latest changes accepted into the official repository. Without syncing your copy with upstream, changes that you make can conflict with other people's work which means you'll have to manually merge all of their changes and figure out which of yours to keep.π More info
If this was successful you should see upstream when you run
git remote -v
-
Go into the new folder
carrotusingcd carrot/ -
Set π₯ Carrot as your upstream by copying this into your terminal
git remote add upstream [email protected]:liquidcarrot/carrot.git -
Copy this into your terminal
git remote -v -
Make sure that you see
upstreamin the list of remotes
π‘ Why it's useful
TBD
π More info
Node.js is the backend version of JavaScript which is traditionally a language used for web-browser animations and other visual functionality on the "frontend". Today, Node.js is used for just about everything including front-end development itself. NPM is the package manager for Node.js which means you can use it import tools to make your development easier.
Ubuntu Linux
π Use "Install Node.js from the NodeSource repository"
π How to install nodejs on Ubuntu 18.04
MacOS
π Click "macOS Installer, which has the apple logo"
π Node.js Official Download page
π‘ Why it's useful
TBD
π More info
An Integrated Development Environment (IDE) is a program that facilitates software development by various software-related tasks to be done in a single application. Most include debugging support, version control, syntax highlighting, code browsing features, and even an integrated terminal to run commands. source (adapted)
Ubuntu Linux
π How to install visual studio code on Ubuntu 18.04
MacOS
π Click "Mac, which has the apple logo"
π VSCode Official Download page
| * | π Learn more | * |
|---|---|---|
| - | π₯ Quick intro to VSCode IDE -> OS: Linux | - |