- Node.js (v18.16.0)
- Python (v3.11)
- Pip (v22.3.1)
Clone Smartfolio's source code to your local machine
git clone https://github.com/BT3103AppDev1/final-project-l1-final-project-group-12.git
For Windows users, run the following commands in Powershell from Root:
npm install; if ($?) { pip install -r requirements.txt }
In command prompt:
npm install && pip install -r requirements.txt
Starting the server-side for development and APIs query
npm run server
Starting the client-side for development
npm run dev
Both the backend and frontend server has to be deployed for the app to work as expected. Presently, the client is being served by https://smartfolio-7gt75z5x3q-as.a.run.app.
Due to complexities of deployment of a mixed language architecture, the backend is containerized and deployed on Google Cloud Run. An extensive user guide on Docker and GCR deployment can be found here https://docs.docker.com/get-started/02_our_app/
To deploy on GCR via Docker images
gcloud run deploy your-service-name --image gcr.io/your-project-id/your-image-name:your-tag --platform managed
npm run build
firebase deploy