Ensure the following are installed on your system before proceeding:
- Docker Engine
- Docker Compose
- Node.js and npm (Node Package Manager)
This is our deployed website link https://love-me-tender-51qa.onrender.com
To deploy the project's latest version follow the steps below;
- Go to render dashboard
- Click on Manual Deploy button
- Select deploy latest commit
To run this website locally, follow the following instructions:
- Clone the repo
git clone https://github.com/LauraSantiag0/Love-Me-Tender
- Run this command to start the database
docker compose up -d
- Install NPM packages
npm install
- Run the build command
npm run build
- Run the code
npm start
To modify the database, run the command below from the database folder, and add DB modifications in the generated ...-up.sql file
Then run above command again.
node ../node_modules/db-migrate/bin/db-migrate create name-for-the-migration --sql-file
To run the database locally, add the following variables to your .env file: DB_PASSWORD=opensesame DB_USERNAME=postgres
To configure the SMTP server, add the following variables to your .env file and set their values according to your service provider: MAIL_HOST=<your_smtp_host> MAIL_PORT=<your_smtp_port> MAIL_USER=<your_smtp_user> MAIL_PASSWORD=<your_smtp_password> Replace <your_smtp_host>, <your_smtp_port>, <your_smtp_user>, and <your_smtp_password> with the appropriate values provided by your SMTP service.