Application Project for showing programming skills in Node.JS -> doctor management software with mongoDB
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
spec
src
test
.gitignore
README.md
Red Medical.postman_collection.json
package-lock.json
package.json
startmongo.bat
typings.json

README.md

DragonServer

install modules (after cloning)

npm install

setup MongoDB locally

download & install mongoDB from https://www.mongodb.com/download-center

(windows): run batch file startmongo.bat to create mongo-folder and start mongod server on localhost

(linux/mac): create folder data/db in project and run

mongod --dbpath "data\db"

to choose that folder, then, (Linux only) add testuser ->

mongo Dragon --eval "db.user.insert({email:'max_aigneraigner@web.de', name: 'tester' , password: '$2a$04$hKyOOOJPyiSc0ca2xNqCguHwUywRWZPn0P.7H4BbjqwNzH4zKww7u' });"

(in windows this is done in the batch script)

run Unit Tests

npm run pretest

npm run test

build & start Server and connect with postman!

npm run build

or

npm run build-watch

npm start

-> the postman collection is called "Red Medical.postman_collection.json". Import that into postman.

Running tslint to check your code:

Run npm run tslint.

Accessing the server

The server will start on http://localhost:8080