A Software Engineering Project in the IF682 class. Building a social media application to help people to find love.
This project has a backend/frontend architecture, so you need to run both, where the backend needs to be run first, then the frontend.
You need to create a .env file in the backend folder with the following variables, without the comments:
DB_URI=mongodb+srv:// # Database URI connection
FB_TOKEN=123|ABC # Facebook token
DB_NAME=coopido # Database name
SECRET=secret # Secret keyInstall the backend dependencies and run it.
cd backend
npm install
npm startIn another terminal, install the frontend dependencies and run it.
cd frontend
npm install --legacy-peer-deps
npm startInstall the yarn if you don't have it. Install the backend dependencies and run it.
cd backend
yarn install
yarn devIn another terminal, install the frontend dependencies and run it.
cd frontend
yarn install
yarn startIf you want to run the developer version of this project, where you can modify the files and triggers a live reload, you can use the following command:
docker-compose build
docker-compose up -dThis option is the most slow! You need to wait the following messages: "Nest application successfully started" and "Compiled successfully" from backend and frontend respectively.
But, if you want to run the production version of this project, where the project will be builded, receiving more performance, you can use the following command:
docker-compose -f docker-compose.prod.yml build
docker-compose -f docker-compose.prod.yml up -dDon't forget to remove the previous container if you want to switch between the versions (dev/prod). To see the containers, run
docker container ls -a, and to remove itdocker container pruneor justdocker-compose downon the previous version.
Run the following command to install the cypress dependencies:
npm installRun the following command to open the cypress browser:
cypress openSo you can select the integration tests to run.

