watscho / express-mongodb-rest-api-boilerplate Goto Github PK
View Code? Open in Web Editor NEWA boilerplate for Node.js apps / Rest API / Authentication from scratch - express, mongodb (mongoose). Typescript
License: MIT License
A boilerplate for Node.js apps / Rest API / Authentication from scratch - express, mongodb (mongoose). Typescript
License: MIT License
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
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.
First of all thank you for sharing this awesome repo ;)
Sign-in endpoint returns token. How do I get the user data?
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
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.