Skip to content

mgayatri77/Housing_Proj

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Complete Setup Guide

Backend

All you need to do are three steps:

  1. download the .env folder from Homehub Drive to the Backend folder
  2. docker build --tag homehubbackend .
  3. docker run -p 5000:5000 homehubbackend

NO MORE SET UP PAIN! EMBRACE THE MAGIC OF DOCKER AND CRIS(who actually put yall through the pain at the first place)!

Potential Errata:

E1

  1. If receiving errors from chat section: try new API key and secret(will be updated regularly):

    Key: 57tcrkskk54w

    Secret: jp592pew7pst9jt2w5v3zz6ytpb8j7euq7mfakp5ezxn9j4s2a2e7xch35vk9dgn

  2. How to update:

    a. Update the ChatApp.js in the components file(only key needed) from FrontEnd folder

    b. Update the authentification.py from BackEnd folder(can be found in the beginning of the code).

E2

During some unknown circumstances (different machines, preexisting node_modules), there might be this weird behavior of webpack keeping recompiling.

If this happens: go to This Issue

Development Guide

Editor

It is highly recommended to use Visual Studio Code for its extensive library support.

Style

For React style guide, please refer to the Airbnb Style Guide

Please use Prettier to autoformat for React Code along with style guide. The set up for setting.json is the following:

{ "editor.defaultFormatter": "esbenp.prettier-vscode", "[javascriptreact]": { "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.formatOnSave": true }, // Set the default "editor.formatOnSave": false, }

CI/CD

  1. "In software engineering, CI/CD or CICD generally refers to the combined practices of continuous integration and either continuous delivery or continuous deployment." link

  2. Such principle is implemented by Travis CI in Github. The configuration can be found in this file

Hard Rules

  1. Any code change must not be directly pushed to Master, the purpose of Master branch is to ensure no matter how we modify the code we still can go back to a working codebase if everything is just messed up. This rule is enforced by Rule setting on Github and any push to Master will be rejected.

  2. PR must 1. pass all written tests 2. be reviewed by two developers of the team to be merged into Master. This is to ensure all checks are clear to maintain the quality of existing codebase.

Testings

  1. For Python we will be using the unit test framework.
  2. For npm we will be using JEST and react-test-renderer. Example can be found here.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 50.9%
  • Python 36.2%
  • SCSS 9.8%
  • JavaScript 2.0%
  • Jupyter Notebook 0.6%
  • HTML 0.4%
  • Dockerfile 0.1%