Welcome to Splitsy! A service that allows users to conveniently split restaurant bills!
- Contributers
- Milestones
- Technologies
- Installation
- Sample data
- Main features
- Git Feature Workflow
- Code Reviews
- Jun 11 Complete and Share with friends
- Jun 04 Features complete
-
- Authorization
-
- Browse restaurants
-
- Browse Menu
-
- Cart
-
- Spliting bill
-
- User profile
-
- Friend list
- May 21 Project Proposal
- May 14 Project Start
Frontend | React | React Router | Material UI |
Backend | Node | Express | MongoDB |
Dev Tools | Webpack | Babel | Jest.io |
APIs | MealMe API | ||
Authentication | bcrypt | react-cookie |
From within the root directory:
See the example.env file and create a .env file to save mongoose database connection.
Alternatively, change the dbAdress variable within database/index.js to mongodb://localhost:27017/splitsy
$ cd client
$ npm run start
In root directory:
$ npm run server
Go to localhost:3001/
In order to use sample data, follow these steps:
- Make sure you have MongoDB installed.
- Checkout schema in
/database/index.js
- Connect to database. In file /database/index.js, change dbAddress as follow:
- If you use local database.
dbAddress = mongoose.connect('mongodb://localhost:27017/splitsy')
- If you use EC2 database.
dbAddress = mongodb://[MONGODB USERNAME]:[MONGODB PASSWORD]@[YOUR IP ADDRESS]:27017/splitsy?authSource=admin
- From within the root directory (outside Mongo shell), type this command to restore data into your MongoDB:
- If you use local database.
mongorestore dump-v2/
- If you use EC2 database. mongorestore dump-v2/ --host=[IP ADRESS OF THE HOST]
Authentication
TODO Authentication's description
🍔 Restaurant & Menu 🍖
TODO Restaurant's description
🛒 Cart 🛒
TODO cart's description
💳 Split payment 💳
TODO split payment's description
User profile
TODO User's profile descrpition
-
Run
Start by switching to the main branch, fetch the latest commit, merge the changes into the local branch
git checkout main
then run
A)git fetch origin
andgit reset --hard origin/main
OR
B)git pull
Runnpm install
to update packages/depeendences installed by others during merge. -
Run
git checkout -b new-feature
.
Including the-b
flag tells Git to create the branch if it doesn’t already exist. -
Run
git checkout new-feature
and thengit merge main
. This merges the changes pulled from main into the feature branch (and preserves the full commit history in the log). -
Run
git status
,
git add <changed-file>
,
git commit -m "YOUR COMMIT MESSAGE"
-
Run
git push -u origin new-feature
.
Including the-u
flag adds it as a remote tracking branch. After setting up the tracking branch,git push
automatically pushes the new-feature to the central repository.
-
Run
git switch <feature-branch-to-review>
. This creates and switches to a local version of the remote branch you are attempting to run and tracks its remote. Then rungit pull
to pull in the changes to that branch to your local branch. - Provide feedback on the code you reviewed and merge or leave the pull request open, as necessary.