Server to run real estate project.
- git clone git@github.com:jkarelins/real-estate-server.git
- PostgreSQL DB should be launched. e.g. run it in docker container Change configuration in /db.js - file
- cd real-estate-server
- npm install
- npm run start
-
Create .env file in root folder of project with folowing content:
-
CLOUDINARY_URL=Your cloudinary URL
-
CLOUD_NAME=Your cloud name
-
API_KEY=Cloudinary API KEY
-
API_SECRET=Cloudinary API secret
-
API_BASE_URL=Your Cloudinary base URL
-
SECURE_DELIVERY_URL=Your Cloudinary secure delivery URL
-
STRIPE_KEY=Your Stripe key - begins with sk test
-
Register FREE: Create Heroku Account
-
Create new project
-
After deployment go to project settings
-
Setup Config Vars
-
CLOUDINARY_URL - Your cloudinary URL
-
CLOUD_NAME - Your cloud name
-
API_KEY - Cloudinary API KEY
-
API_SECRET - Cloudinary API secret
-
API_BASE_URL - Your Cloudinary base URL
-
SECURE_DELIVERY_URL - Your Cloudinary secure delivery URL
-
STRIPE_KEY - Your Stripe key - begins with sk test
Check any of server routes. e.g. /user or /advert/all If App was first launched, should return empty array and Response code should be 200.