A Node.js project
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm start
- Nodejs
- MongoDB
A blazing fast REST APIs with Node.js, MongoDB, Fastify and Swagger.
License: MIT License
A Node.js project
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm start
Line 15 in 67ab5d7
Just read your article on medium and decided to give it a try as I'm looking to port some sails/trails legacy apps.
windows 10
node 10.15.0
npm 6.4,1
If I get traction with this framwork I will add to your foundation with JWT, muter and other options. Also looking for a place to store mutiple databases and then have models use attach to the correct database.
Hi,
nice writeup on freecodecamp. Somehow I couldn't comment there so thats why I mention this here:
An alternative option to runtime generation of the swagger file is to create the swaggerfile (or openapi-spec ;-)) first and then use: https://github.com/seriousme/fastify-openapi-glue
This will save you from having to manually create routes as well.
Cheers,
Hans
E:\zhf\work\test\test\study\node\fastify-api-clone\fastify-api>
[email protected] start E:\zhf\work\test\test\study\node\fast
tify-api
./node_modules/nodemon/bin/nodemon.js ./src/index.js
'.' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: ./node_modules/nodemon/bin/n ndex.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is like
ging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\admin\AppData\Roaming\npm-cache_logs\201
050Z-debug.log
E:\zhf\work\test\test\study\node\fastify-api-clone\fastify-api>
SyntaxError: Unexpected token '?'
const hostPath = listenOptions.path ? [listenOptions.path] : [listenOptions.port ?? 0, listenOptions.host ?? 'localhost']
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.