Need help with Mongoose-TypeScript-example?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

tomanagle
196 Stars 57 Forks MIT License 86 Commits 24 Opened issues

Services available

!
?

Need anything else?

Contributors list

# 76,401
TypeScr...
Deno
js
unittes...
12 commits
# 1,249
GraphQL
MongoDB
Markdow...
render-...
1 commit

Mongoose TypeScript example

Known Vulnerabilities GitHub stars GitHub license GitHub forks

This repo is example code that goes along with this medium aticle: https://medium.com/@tomanagle/strongly-typed-models-with-mongoose-and-typescript-7bc2f7197722

If you prefer a video: https://www.youtube.com/watch?v=TbT7eO1fxuI

The article explains how to use use TypeScript with your Mongoose models.

If something in the article or this repo needsfurther explanation or improvements, please sumit a pull request.

Testing

yarn test

The test command will setup a mongodb test server, connect to it, run your tests and the server will go through a teardown process to clean up all remaining listners.

Development

yarn dev

The run dev command will start the server and listen on the configured port. The port can be configured in ./src/index.ts

Support

Buy me a Coffee

Sign up to DigitalOcean I 💖 DigitalOcean

Subscribe on YouTube

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.