-
Notifications
You must be signed in to change notification settings - Fork 12
New Developer Guide
Justin Lu edited this page Feb 14, 2022
·
8 revisions
Welcome to the backend team for MYR! Below is (hopefully) everything you need to get started.
MYR is built using the MERN stack. MERN stands for Mongo, Express, React, and Node. We use Mongoose as an ODM to interact with the database.
MYR is hosted on a virtual machine at UML. Read more information about the server in the sidebar.
Prerequisites:
- Installation of MYR
- (Optional) Installation of MYR admin portal
Install Docker
- MYR backend uses a docker container to run the application
- You can install desktop application (Recommended) or docker engine and docker-compose
- If you are on windows, you have to enable WSL2 for docker desktop
Steps
- Fork backend repository from Engaging-Computing page.
- Navigate to the parent directory of where your MYR development environment is.
- Clone the repository by running these commands
- Make sure to clone them onto same parent directory as your frontend and/or admin.
git clone https://github.com/[your-username]/myr-backend.git
cd MYR-backend
git remote add upstream https://github.com/engaging-computing/MYR-backend.git
Create Following folders inside the repository
- Use nvm v12.18.2
- After nvm is install you should able to run command
npm
on CLI. - Run
npm install
within the MYR backend to install the dependencies. - Make a copy of .env.example and rename it to
.env
. - Update
.env
to include your OAuth2 key. - You can start running the backend by running
docker-compose up
- You can close or exit the backend anytime with
Ctrl + C
- Start developing!
MYR | MYR GitHub | ECG Website
General
Server Information