bsoc-bitbyte / GetIt

Streamlined college e-commerce: Simplifying merch buying and selling for students.
https://getit.iiitdmj.ac.in/
17 stars 51 forks source link

build : Added build.py to setup the backend and incorporated a global .gitignore #41

Closed Priyansh61 closed 1 year ago

Priyansh61 commented 1 year ago

Overview

  1. This PR fixes or fixes part of #40
  2. This PR does the following: Single build.py to setup the local env setup

Essential Checklist

Proof that changes are correct

PR Pointers

Priyansh61 commented 1 year ago

@arminpatel Dont merge it because the scripts are being executed in global env instead of venv if you think of any way do let me know

Priyansh61 commented 1 year ago

@arminpatel @Tusharjain123 Any suggestions?

arminpatel commented 1 year ago

@Priyansh61 imo using python to use a subprocess to source a file would be difficult and really roundabout way to do it. How about using a simple shell script. Or rather doing this at some later stage?

Tusharjain123 commented 1 year ago

@Priyansh61 I will prefer using a shell script because using a subprocess in Python to source a file will be a bit complex as compared to a shell script. With shell script, we can directly execute the source command to load the environment variables.

Priyansh61 commented 1 year ago

@arminpatel @Tusharjain123 Your suggestion really helped! Take a look now and just check if the venv gets activated correctly now because we dont want to mess things up, since there will be a lot of dependecies in the near future else they will be installed globally