- Launch MongoDBCompass
- Connect to the url
mongodb://localhost/<Any port / that isnt used / default 27017>
- Create a database named Assignment2
- Create a collection named
phoneList
and import the contents of the phone json - Create a collection named
userList
and import the contents of the user json - That is it!
- Install mongodb and robo3t
- Create a directory comp5347/mongodbon your local drive
- Open a command window or power shell window and change to directory C:/Program Files/MongoDB/Server/3.4/bin
- run the following command
mongod.exe --dbpath <Drivename>:/comp5347/mongodb --smallfiles
- Start robot3t and click
create
and rename the connection to a name if desired - Then you want to create a database called Assignment2
- Then you can create the
collections / revisions
and import the phone json file and then the user json file as the namesphoneList
anduserList
respectively - Or you can do it through command line by navigating to C:/Program Files/MongoDB/Server/3.4/bin
- And entering the command mongoimport --jsonArray --db wikipedia --collection revisions --file
Firstly, you're going to need Node installed. If you have Node installed, you already have npm.
To install dependencies, navigate into both the client
and server
directories and run npm install
.
Setup 2 terminal windows, navigate one to the client
directory and the other to the server
directory.
After making changes to the React app, you'll have to rebuild the application bundle. You can do this in the client
directory just by running npm run build
.
In the server
terminal, you can just run npm start
to run the server.
Pull requests are welcome. However, pushing any commits must be first discussed with the group members. This is a private project, thus it is required to raise any concerns and/or opportunities with the team regarding the application. Once you have been granted approval for changes, be sure to update test cases appropriately.
Distribution and use of this project is strictly prohibited.