Code Monkey home page Code Monkey logo

express-mongodb-rest-api-boilerplate's People

Contributors

watscho avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

express-mongodb-rest-api-boilerplate's Issues

Add Swagger

I like the boilerplate structure but i have a question. How do you add swagger in this structure? All your controllers are functions. Swagger needs class

winston problem: Cannot log to file without filename or stream.

npm run watch

[email protected] watch /Users/alessandromicelli/Desktop/Progetti/Personali/Server/portfolio
npm run rm:public && cross-env ts-node-dev --files --respawn --inspect -r tsconfig-paths/register ./src

[email protected] rm:public
rm -rf ./public

[INFO] 19:32:38 ts-node-dev ver. 2.0.0 (using ts-node ver. 10.9.1, typescript ver. 5.0.2)
Debugger listening on ws://127.0.0.1:9229/0e38ee98-4637-4016-948f-4e482c1e71bc
For help, see: https://nodejs.org/en/docs/inspector
Error: Cannot log to file without filename or stream.
at new File (/Users/alessandromicelli/Desktop/Progetti/Personali/Server/portfolio/node_modules/.pnpm/[email protected]/node_modules/winston/lib/winston/transports/file.js:73:13)
at Object. (/Users/alessandromicelli/Desktop/Progetti/Personali/Server/portfolio/src/infrastructure/logger.ts:8:16)
at Module._compile (node:internal/modules/cjs/loader:1149:14)
at Module._compile (/Users/alessandromicelli/Desktop/Progetti/Personali/Server/portfolio/node_modules/.pnpm/[email protected]/node_modules/source-map-support/source-map-support.js:568:25)
at Module.m._compile (/private/var/folders/j7/6x0f1gyj2d13pgxjmbvmpgn00000gn/T/ts-node-dev-hook-024141453726162165.js:69:33)
at Module._extensions..js (node:internal/modules/cjs/loader:1203:10)
at require.extensions..jsx.require.extensions..js (/private/var/folders/j7/6x0f1gyj2d13pgxjmbvmpgn00000gn/T/ts-node-dev-hook-024141453726162165.js:114:20)
at require.extensions. (/private/var/folders/j7/6x0f1gyj2d13pgxjmbvmpgn00000gn/T/ts-node-dev-hook-024141453726162165.js:71:20)
at Object.nodeDevHook [as .ts] (/Users/alessandromicelli/Desktop/Progetti/Personali/Server/portfolio/node_modules/.pnpm/[email protected]_sxidjv3cojnrggmso45tj7hldi/node_modules/ts-node-dev/lib/hook.js:63:13)
at Module.load (node:internal/modules/cjs/loader:1027:32)
[ERROR] 19:32:39 Error: Cannot log to file without filename or stream.

How to get user?

First of all thank you for sharing this awesome repo ;)

Sign-in endpoint returns token. How do I get the user data?

Missing Documentation?

Hi ,

Thanks so much for creating this - really easy to build off of!

I was wondering if you have any docs on making requests to the api? I noticed you mentioned a todo app but I can't find it!

Thanks again.

Nakul

hangs on yarn start?

i've tried running an instance of this locally and it just hangs on this? I have a redis and mongodb instance running, and there aren't any errors in the log file, did i miss something I'm supposed to do?

yarn start
yarn run v1.22.19
warning ../../package.json: No license field
$ npm run rm:public && cross-env NODE_ENV=production ts-node --files -r tsconfig-paths/register ./src

> [email protected] rm:public
> rm -rf ./public

How can I use the token?

When I sing-in I get a token, but I couldn't use it.

I tried: {
"context": {"user": "====token_here==="}
}

How can I perform it?

Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.