|10 months ago||4 days ago|
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
2 projects | dev.to | 13 Aug 2022
3- Add an ORM with the proper DB driver (I use Sequelize -mostly- or Mongoose but there are a tone out there, you can pick your favourite one).
Simple auth system using JWT
2 projects | dev.to | 8 Aug 2022
And for example my UserSchema (mongoose), we just initialize the personalKey when the user is created. And when user logged out we just regenerate the personalKey, this way the tokens before will always be invalid because they used the different key.
How to Secure Nodejs Application.
6 projects | dev.to | 8 Aug 2022
To prevent SQL Injection attacks to sanitize input data. You can either validate every single input or validate using parameter binding. Parameter binding is mostly used by developers as it offers efficiency and security. If you are using a popular ORM such as sequelize, hibernate, etc then they already provide the functions to validate and sanitize your data. If you are using database modules other than ORM such as mysql for Node or Mongoose, you can use the escaping methods provided by the module. Let's learn by example. The codebase shown below is using mysql module for Node.
Six Reasons why you should use NestJS
7 projects | dev.to | 5 Aug 2022
Começando uma API REST com Node.JS #2
2 projects | dev.to | 4 Aug 2022
Simple todo API with complex concepts
3 projects | dev.to | 24 Jun 2022
Build a GraphQL app in Node.js with TypeScript and graphql-request
3 projects | dev.to | 9 Jun 2022
To put it simply, a GraphQL schema is a description of the dataset that clients can request from an API. This concept is similar to that of the Mongoose library. To build a schema, navigate to the app/Schema.ts file. There, write the following code:
MongoDB transactions in Node.js using Mongoose
2 projects | dev.to | 4 Jun 2022
Here, I am using the Mongoose library to do this as it provides a very intuitive interface for transactions.
#28: Full-Stack SWA: React + Mongoose
3 projects | dev.to | 29 May 2022
With a MongoDB database hosted in Cosmos DB, accessed using Mongoose
TypeScript Create Arrays / Data based off of Interfaces
2 projects | reddit.com/r/typescript | 21 Apr 2022
But you can implement the same idea without the (base) source of truth being a TS interface. You could write or generate a schema in a format that can be used by both frontend and backend, and derive as much as you can (including the TS interface) from that. Heck if the input for a Mongoose schema is as basic as it looks in your example, you might even be able to use that (it looks like Mongoose might have TS inference for schemas soon).
What are some alternatives?
Sequelize - An easy-to-use and promise-based multi SQL dialects ORM tool for Node.js | Postgres, MySQL, MariaDB, SQLite, MSSQL, Snowflake, Oracle DB (v6) & Db2 for IBM i
Prisma - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
MikroORM - TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, MariaDB, PostgreSQL and SQLite databases.
Bookshelf - A simple Node.js ORM for PostgreSQL, MySQL and SQLite3 built on top of Knex.js
Mongorito - 🍹 MongoDB ODM for Node.js apps based on Redux
Waterline - An adapter-based ORM for Node.js with support for mysql, mongo, postgres, mssql (SQL Server), and more
Objection.js - An SQL-friendly ORM for Node.js
Iridium - A high performance MongoDB ORM for Node.js
dayjs - ⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API
SheetJS js-xlsx - 📗 SheetJS Community Edition -- Spreadsheet Data Toolkit
node-mssql - Microsoft SQL Server client for Node.js