-
Notifications
You must be signed in to change notification settings - Fork 23
Setting up a Development Environment
ryan edited this page Jul 27, 2023
·
13 revisions
- Install Node.js (a JavaScript Runtime) via NVM. Follow the direction from the NVM website to install it on your OS.
- If you are on windows. You have to enable Windows Subsystem for Linux(WSL) and install Linux Distro to your machine to install NVM.
- Run
nvm install 12.18.2
to install Node 12.18.2. - Run
nvm use 12.18.2 --default
to set the Node version.
- Check your npm version(
npm --version npm
) and make sure the version is above v7 (if not upgrade withnpm install -g npm
)
- Install Git.
- Install VSCode.
- Add the following extensions to VSCode.
- NPM Intellisense
- GitLens
- ESLint
- (Optional) Install React Dev Tools and Redux DevTools extensions to your preferred web browser.
- Visit github.com/engaging-computing/MYR. In the top right corner, click "Fork" and follow the directions.
- On your computer, run the following commands. (This requires git to be installed.)
git clone https://github.com/[your-username]/MYR.git
cd MYR
git remote add upstream https://github.com/engaging-computing/MYR.git
- Make a copy of .env.example and rename it to
.env
. - Update
.env
to include your OAuth2 key. - Run
npm install
to download required packages. - Run
npm start
to start the server. - Navigate to localhost:3000 in your browser to see your local server!
MYR also requires a running backend to have full features. The backend must first be installed and then running at the same time as the MYR server is running. The directions for installing the MYR backend are located in the backend wiki
It is very important that the developers have this key in both the front-end and back-end code, in the .env file. If it is only in one, then the developer will encounter an error every time the code is run, as well as trying to run actions that interact with the back-end.