- clone the repo
- you need two terminals open to run frontend and backend
- cd project-ratemy/backend
- npm install
- node server.js
- cd project-ratemy/frontend
- npm install
- npm start
- navigate to localhost:3000
NOTE: currently it works for http requests, we need to make it work for https
There are many options for sending http requests to the backend api for testing. Of course, frontend will call all our backend endpoints, but for testing purposes you can use Postman or curl.
Postman: download the app online, open it and create an account. You need to create a workspace, and in your workspace you should see one tab that says "Overview", next to it click the plus button and enter the url endpoint, the request method, and perhaps some data in the body. To see an image of this, I will post it in the setup-refs of our discord chat as image 1.
Download MongoDB Compass from the internet. Click new connection and paste this mongodb+srv://alina:[email protected]/ in the URI field. Then click save and connect. If it works, you should see at least 3 databases admin, local, and test. Open the test one. You should see a collection called users which holds the data. Try sending a request with postman and check that the data is there.
We will use the main branch as stable release branch. Our development branch is dev. We will branch off of dev, put up PRs to merge into dev and only occasionally when fully tested merge dev into main.
- Make a branch per trello card
- Name branches name/cardnumber-title
- make sure commit names are descriptive
- remove all console logs and commented out code
- add code comments especially to confusing logic to make review easier
- make sure to cite resources as thierry wants
- put up a PR and get approval from at least one person
- Open a terminal session
- cd project-ratemy
- already have dev branch
- git checkout dev
- git pull origin dev
- dont have dev branch
- git fetch origin dev
- git checkout dev
- develop
- git add filenames
- git commit -m "commit message"
- git push origin branchName - make sure to never push to dev