-
Notifications
You must be signed in to change notification settings - Fork 0
Developer Guide
created by @OrAbramovich.
edited by @alonttal.
Welcome aboard!
- Node.js (version 8.9.1)
- Mongodb (version 3.4).
- Git client.
- Github account.
The first step is pulling the source files of the project from our git repository: https://github.com/TechnionYearlyProject/Roommates
After pulling files, you need to download dependencies (such as Express) by running: npm install inside the following directories (some dependencies are for the back-end and some for the front-end):
- Project main directory.
- Views directory.
- You can run the backend by the following command:
npm start
- You also have to run the DB by running:
/path/to/mongod --dbpath path/to/local/db
mongod is located where you've installed mongodb and --dbpath is any location on your HD where you decide to save the db records. - You can run the unit tests by the following command:
npm test
Unit tests are part of our definition of done. All the tests file are located at the "tests" directory and organized in the same file structure as the modules they are testing. E.g a test file for the module "services/geolocation.js" will be saved here: "tests/services/geolocation.test.js". The notation of the name is: [name_of_the_module].test.js. The name must include the suffix ".test.js" since our tests engine recognizes the test files by this way.
Each push is going to pass through:
- TravisCI
- Codecov
All front-end files are located in the Views directory.
- Images and other static assets have to be added to the "static" directory.
- Components have to be added to the src/components directory.
- Pages have to be added to the src/pages directory.
- Run the front-end from the views directory, located in the project's root directory, by running:
npm run dev
After that you will be able to access the UI through: http://localhost:8080
All the project documentations can be found on GitHub Wiki in a the right panel, conveniently organized by subjects.
The web is hosted in Heroku service.
Site url: https://powerful-tundra-42649.herokuapp.com/
Heroku deployment instructions:
Download heroku cli from: https://devcenter.heroku.com/articles/heroku-cli
Login to heroku from project directory using:
heroku login (contact us to get the password)
username: roommatesyearlyproject@gmail.com
password: ***********
Add remote to local reposiroty:
heroku git:remote -a powerful-tundra-42649
Commit changes:
git add .
git commit -m "..."
Push to heroku:
git push heroku master
for any further questions, please contact us.
- Conneting to mLab
- Connecting to Heroku
- How to Run Tests
- DB Server Setup Procedure
- Developer Guide
- Azure Deployment Steps
- Azure DB Deployment Steps
- Introduction to MongoDB
- Introduction to ElasticSearch
- Introduction to Spring
- MongoDB Tutorial
- Introduction to Bootstrap
- Introduction to Amazon S3
- Introduction to Vue.js
- RESTful API Tutorial
- HLD
- Back-end-API
- location review API
- Test Plan
- Sprint 1A Presentation
- Sprint 2A Presentation
- Roommates Report
- Working with the Sockets Server
- Close The Deal Flow Definition
- Sprint 1B Presentation
- Project Poster
- Back end Components Diagram
- Use Cases Diagram
- Deployment Diagram
- Azure Deployment Diagram
- Business Flow