- Submit an issue describing your proposed change.
- Fork the repository on GitHub.
- Clone the fork to your local setup.
Clone the Repo :
$ git clone https://github.com/Bhargav252000/restaurant-review.git
$ cd restaurant-review
To set up Frontend follow :
$ cd client
$ npm install
## To start the Frontend run
$ npm start
## This will start Frontend at http://localhost:3000
To set up Backend server follow :
$ cd ../server
$ npm install
$ npm run server
## By default the server will start at http://localhost:3005
To setup the Database follow :
- Install Postgres from here according to your preferred OS.
- Enter the postgresql by
psql -U postgres
, enter the password (w.r.t windows) - Can be confirmed you are in PostgreSQL, if you see
postgres=#
at start - Create a Database with any name.
- Create a
.env
file and add all the required Information - By default
port : 5432
,user : postgres
,host : localhost
- Add a script
"migrate" : "node-pg-migrate"
inpackage.json
file npm run migrate create <NAME_OF_MIGRATION>
this will create a migration folder in server directory.- Copy all the code from here and add it in the newly file created in migrations.
- If you are windows user run
$env:DATABASE_URL="postgres://postgres:<YOUR_DATABASE_PASSWORD>localhost:5432/<DATABASE_NAME>"; npm run migrate up
- Create a branch :
git checkout -b branch-name
. Please avoid working directly on themaster
branch. - Make commits of logical units.
- Make sure your commit messages are in the proper format.
- Push your changes to the branch in your fork of the repository.
- Submit a pull request to the repository.
- The contributors look at Pull Requests and review them on a regular basis.