-
Notifications
You must be signed in to change notification settings - Fork 12
New Developer Guide
Jason Kiesling edited this page Oct 5, 2018
·
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.
- Navigate to the parent directory of where your MYR development environment is. If you do not have one already set up, visit the MYR wiki. Be sure you're in the parent directory of the MYR build. Your paths should end up looking something like /home/user1/MYR/MYR and /home/user1/MYR/MYR-backend.
- Clone the repo. Run `git clone https://github.com/jasondkiesling/myr-backend.git.
- Install MongoDB using the directions from Mongo.
- Create an empty folder called public by running
mkdir public
within the MYR-backend. - Navigate to the public folder with
cd public
. - Create an empty folder called myr inside public by running
mkdir myr
. - Create an empty folder called admin inside public by running
mkdir admin
. - Navigate to the MYR folder and run
yarn prod
to build MYR and move it to your new folder. - If you do not already have NPM, install NPM.
- Run
npm install
within the MYR backend to install the dependencies. - Add the config file to /config/config.js. Contact Jason for that file.
- Coming soon Import the default database.
- Create a new branch by running
git branch [new-branch-name]
The branch name should reflect your current project. New branches are created for each new project and then deleted after the pull request is approved. - Run
npm start
to start the server ornpm run dev
(this one restarts the server whenever you save a file). Then navigate to http://localhost:1337. Use ctrl + c to stop the server. - Start developing!
MYR | MYR GitHub | ECG Website
General
Server Information