This project aims to track the average apartment prices in Iasi per neighbourhood.
- front-end: React
- back-end: Node
- db: Postgres
- Node.js (version 14.x or later)
- npm (comes with Node.js)
- PostgreSQL (version 12 or later)
git clone https://github.com/username/project-name.git
cd IasiRealEstate
cd backend && npm install
Create a .env file in the backend directory and copy the fields in the template (back-end/envtemplate) file:
cp envtemplate .env
-
Here you should fill in all the fields with:
- the URL to your backend
- your express server PORT and HOST (typically localhost:5000)
- your database connection URL
- the SMTP (emailing service) data
- the owner email (which will be alerted of good deals every 2 days)
-
- create your Postgres database
- run the
create-tables.sql
queries
npm run build && npm start # or npm run debug for development mode with auto-reload
cd frontend && npm install
Create a .env file in the backend directory and copy the fields in the template (back-end/envtemplate) file:
cp envtemplate .env
In .env you should fill in the URL of your backend server
npm start