-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Dev Setup: Mac
PitVital edited this page Nov 23, 2022
·
31 revisions
For more information about the tools being installed and what they do, see our third party software and services page.
Most steps take place in the Terminal, which is in Applications > Utilities
, or can be found with Spotlight Search. When you run a command and it doesn't end, and you want it to end, use the shortcut Ctrl-C
.
These steps are our recommended approach to setting up CodeCombat's development environment. As long as you cover the General Setup Instructions, you can install these tools however you prefer.
- Install Xcode.
-
Install Xcode Command Line Tools. Open XCode and go through menus
Xcode -> Preferences -> Downloads
. This will install Git and provide the command line tools for building the development environment. - Install NVM. This will help in installing Node, and NPM, the Node package manager. There are multiple ways to install Node, so if you install the latest Stable version some other way, skip down to setting up GitHub.
-
Install Node and NPM with NVM. As of writing, we're using Node 14, so the command is
nvm install v14
. Check the node version we're using in package.json. - The folder for CodeCombat has a file called
.nvmrc
that instructsnvm
which version to use. That means that when you enter the folder in your terminal,nvm
will switch tov14
automatically, and you should see a message saying something like this:Found '/your/path/here/codecombat/.nvmrc' with version <v14.16.0> Now using node v14.16.0 (npm v6.14.11)
- Create an account on GitHub. This is where our code repository is hosted.
- Configure Git to connect with your GitHub account.
-
Clone the CodeCombat repository.
git clone https://github.com/codecombat/codecombat
. This will copy our source code and all its history to your computer to be run and modified. -
Install and compile CodeCombat source files. Navigate into the folder where you downloaded the CodeCombat repository (
cd codecombat
) and runnpm install
. This will install the npm (server library) and bower (client library) dependencies, as well as building thepublic
directory, which is what the server... serves. - Run the dev environment.
- Visit http://localhost:3000/ to see your CodeCombat development environment!
CodeCombat | Home | Blog | Forum | Teachers | Legal | Contribute
- Home
- Archmage Home
- Artisan Home
- Diplomat Home
- Archmage General
- Mission statement
- Coco Models
- Coding Guidelines
- Cookbook
- File system
- JSON Schema
- Technical overview
- Testing
- Third party software and services
- Artisan General
- Building A Level
- Coding Guidelines for Artisans
- Editing Thang Components
- Important Artisan Concepts
- Keyboard Shortcuts
- Debugging
- Artisan How-To Index
- Diplomat General
- i18n
- i18n Glossary nb
- i18n Glossary ru
- i18n Glossary es-419
- Dev Setup
- Dev Setup: Linux
- Dev Setup: Windows
- Dev Setup: Mac
- Dev Setup: Vagrant
- Dev Setup: Issues
- Game Engine
- Component
- Multiplayer
- Surface
- System
- Thang
- Thang Component System
- Tome
- World
- Artisan Tabs
- Components And Systems
- Scripts
- Settings
- Thangs
- Other
- Aether
- Client models
- Developer organization
- Educational Standards
- Events, subscriptions, shortcuts
- Chat Room
- Chat Room Rules
- Permissions
- Project Ideas List
- Treema
- Versioning
- Views