-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
31 lines (20 loc) · 899 Bytes
/
README
File metadata and controls
31 lines (20 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Mongo Server instructions:
- Go to the MONGO DB bin directory to user mongod
- Start mongod pointing to the mongodb database and enable authorization
- Probe data using mongodb CLI
cd /Users/pafrank/mongodb/bin
./mongod --dbpath=/Users/pafrank/Documents/WebDev/rolodex-db --auth
./mongo -u admin -p 12345 --authenticationDatabase admin
Create an index in Mongo:
db.profiles.createIndex({"profiles.lastName":"text", "profiles.firstName":"text"})
Server code install and run:
- Directory created using "express dir-name" to scaffold out the directory structure
- "npm install" to install all the modules in the new package.json
- "npm start" to star the server
Server Test instructions:
- Test tool is chai and mocha.
- Install mocha globally and chai in the project
- Create test directory and add testcases
- Run mocha to get it to execute the chai cases
Start App:
# ionic serve --lab