In this guide, we’ll be setting up the freeCodeCamp local development environment. Setting up the development environment on a Windows PC is easy, although it will likely give a lot of errors first in the process. The important part is to correct these errors.
|MongoDB Community Server||
|npm (comes with Node.js)||
Updating to the latest releases is recommended.
Run the following commands one by one to validate the versions of the prerequisites installed:
node -v npm -v mongo --version
Create the default folder for Mongo to store databases in:
If you want to spare the time in explorer finding Mongo when it has to be started create a
.cmd file on your desktop and write the path to Mongo. Probably
3.0 with the version you installed.
The following commands all have to be executed in Git Bash
- Follow the instructions here freeCodeCamp on Github and clone the project.
- Make sure you’re in the directory you cloned with GitHub (by default, this is freecodecamp).
cp sample.env .env
- Start Mongo and run
npm run only-once. You should now see a lot of activity in the window where you started Mongo.
npm run develop. After a little while, your local version of freeCodeCamp should be running. You can visit it in your browser at
Congrats, you’re done! If you run into any issues while setting up your local version of freeCodeCamp, feel free to reach out to our Contributors chatroom.