If you've never used github before set your ssh key
- Clone the repo using git:
git clone https://github.com/NJIT-CLASS/frontend.git. - Clone the backend repo using git:
git clone https://github.com/NJIT-CLASS/backend.git. - Set up a local MySQL database and run the latest sql import script
- Download and install redis
- Import latest language strings into server using language-import.js to import them to your local redis instance
- Set the environment variables
dbHost,dbUser,dbPass,database, andserverPortor set them in thebackend_settings.jsto match your MySQL database hostname (probably localhost), database user, database user password, database name, and the port your want the backend server to serve on. - Run
npm install gulpin the frontend directory - Run
gulp generate:fallback-settingsto generate your fallback settings (just answer the questions) - Set the API_URL settings in
/server/utils/react_constants.js - Run
npm installwhich will install all the third-party packages the project depends on in both the frontend and backend directories.- Windows users may need to follow this guide to get argon2 to work in the backend.
- Run
npm startin the frontend directory to start the server and start developing. - Run
npm startin the backend directory.
- JavaScript
- Node.js
- Express.js: web server framework
- React.js: frontend framework
- Handlebars.js: templating engine
- SCSS: CSS preprocessor
- Redis: Redis
- Create an SSH key. Run
ssh-keygen -t rsa -b 4096 -C "[email protected]" - Add the new SSH key to Github
Here are the git commands that you can use to get by for now (if you don't know how to use it)
When you want to send your code to GitHub. Then these three commands will get you by for now.
git add -Awill stage all the files you changed so that you can commit them (next command).git commit -m 'summary of what you changed'will save the changes.git pull origin masterwill get the latest changes from GitHub (Do this AFTER you commit).git push origin masterwill send your changes to GitHub.