https://github.com/weaponsforge/mongoose-db
Experiments and tests on mongodb using mongoose.
https://github.com/weaponsforge/mongoose-db
experiment mongodb
Last synced: about 1 year ago
JSON representation
Experiments and tests on mongodb using mongoose.
- Host: GitHub
- URL: https://github.com/weaponsforge/mongoose-db
- Owner: weaponsforge
- Created: 2019-11-06T06:39:20.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-06T06:43:08.000Z (over 6 years ago)
- Last Synced: 2025-01-31T10:44:41.633Z (about 1 year ago)
- Topics: experiment, mongodb
- Size: 0 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## mongodb-testing
> Experiments and tests using mongodb and mongoose.
### Prerequisites
1. **MongoDB**
MongoDB Community Server v4.2.0, OS Windows x64 x64 was used for this project
2. **NodeJS**
v10.16.3 was used for this project
3. **Nodemon** (Optional)
Install this utility globally if you want to monitor server updates without restarting the server:
`npm install -g nodemon`
## Usage
1. Create and start a local mongodb server from a local directory.
- Set the MongoDB data path only once
`mongod --dbpath=""`
- (or set to mongodb's default data directory)
`mongod --dbpath=`
2. Clone this repository
`git clone https://github.com/ciatph/mongodb-testing.git`
3. Install dependencies.
`npm install`
4. Run the web server.
- Normal command: `npm run start`
- If **nodemon** is installed (for debugging):
`npm run dev:server`
20190106