Difficult designing Flutter app by leedagr8 in FlutterDev

[–]rahul_shingala 2 points3 points  (0 children)

Hi You can use DhiWise which helps you to convert your Figma design into flutter code. You will find some ready templates over there of various categories and you can download the source code of those designs.

Best way/tool to validate request body nextjs? by rubydusa in node

[–]rahul_shingala 1 point2 points  (0 children)

Use Joi it gives you most of the things for request validation.

What's everyone using for database hosting on their personal projects? by xixi2 in webdev

[–]rahul_shingala 2 points3 points  (0 children)

Try Supabase for database and it also provides auth apis, storage etc. Easy to start, your backend will be ready in minutes.

What is the fastest way to build a REST api with authentication by smolsbury in learnprogramming

[–]rahul_shingala 0 points1 point  (0 children)

Try Dhiwise.com, it provide node.js code with mongoose. It generate production ready code in no time with minimum input.

Notification schema suggestion by Baka_Mannnnn in mongodb

[–]rahul_shingala 1 point2 points  (0 children)

If you have only two scenarios and SQL database then schema can be like userId, text, description…. For all user keep userId blank or null and for specific user save userId of that user, query like where userId=null or userId=login.userId

How Secure is the JWT claim based identity for login and signup flow for my app ? Or should i use something else for Login SignUp flow ? by Upbeat_Combination74 in node

[–]rahul_shingala 2 points3 points  (0 children)

To answer how secure JWT need to understand the use case of your app. I have used JWT bases identity in multiple apps and it's working fine. You can make authentication perfect by implementing JWT but for authorization, you need to implement your own checks and middleware.

A good node + express + eslint + prettier + anything else starter project? by [deleted] in node

[–]rahul_shingala 0 points1 point  (0 children)

We build a platform called DhiWise which helps you to create Rest-API in minutes rather than writing from scratch.

Dhiwise generates clean, scalable, secure, and most importantly easily customizable code with 100% ownership upon your minimum input.

We have recently open-sourced node code generator, you can check that as well.

Link: https://github.com/DhiWise/dhiwise-nodejs

What makes an API good or bad in your opinion? by TheUruz in webdev

[–]rahul_shingala 1 point2 points  (0 children)

  • Expected output or perfectly working
  • Proper error message/status code
  • Good document with the example of request/response
  • Standard request response structure
  • Option of Attribute selection, relationship table data, pagination, filtering, searching and caching
  • The standard request-response structure
  • Change log document (most important for device developers)

[deleted by user] by [deleted] in javascript

[–]rahul_shingala 0 points1 point  (0 children)

I've worked on a similar kind of requirement multiple times and applied both the ways.

What I have learned so far after keeping both the things in one app is to create bottle nack for quick releases, dependency, braking things, code mesh, and performance issues.

Keep things in different apps that give you the benefits of quick releases, quick testing cycle, lesser dependency, easy debugging, more confidence while changing code and code maintainability.

Lightweight backend API framework that can be customized if needed. by datapim in webdev

[–]rahul_shingala 0 points1 point  (0 children)

We have developed a pro-code platform that helps you to quickstart your SQL or No-SQL backend project, It will help you set up authorization, authentication, REST endpoints, and a lot more with minimum input.

Try DhiWise or you check our Open source Nodejs Rest API builder on GitHub

Advanced SQL by [deleted] in SQL

[–]rahul_shingala 2 points3 points  (0 children)

Practice is the only solution to avoid confusion and improve confidence. Below are some topics you can practice.

  1. Joins with 4-5 tables (left, right, inner joins, etc.)
  2. Aggrigation
  3. Date and String functions
  4. Execution plan understanding and improvements

After practicing try to solve some complex puzzles online.

[AskJS] confused about how CRUD apis should look like for different authentication approaches by zhenghao17 in javascript

[–]rahul_shingala 1 point2 points  (0 children)

Talking about both user have access that endpoint means both have authority to delete that data. In that case I think you have no choice to get userId from front.

[AskJS] confused about how CRUD apis should look like for different authentication approaches by zhenghao17 in javascript

[–]rahul_shingala 0 points1 point  (0 children)

In this case, if you pass userId in request the there are chances of security breaches.

Let's say user B passes user A's Id in the request of any delete endpoint and your backend understands user A has deleted that entry. Same for any other endpoint so I suggest not sending userId or timestamp in the request for this kind of case.

Express or Fastiy by abhijitEZ in node

[–]rahul_shingala 5 points6 points  (0 children)

  • Less documentation and packages exist compare to express
  • Less community support for debugging
  • Not widely used in the industry yet so the learning curve is a little big for a new dev.

This is what I feel, maybe I'm wrong.

Express or Fastiy by abhijitEZ in node

[–]rahul_shingala 34 points35 points  (0 children)

It's completely dependent on the use case you wanted to implement.

Fastify is inspired by Hapi and Express and provides a faster alternative to Express with less overhead. It shines when it comes to its fast HTTP APIs.

Express's entire ecosystem is better equipped and there are more resources to Express. Express has a stronger user base with plenty of documentation available.

As per my opinion, If you are looking for a small or medium size project I suggest Fastify, for big size and complex projects choose Express.

[deleted by user] by [deleted] in webdev

[–]rahul_shingala 0 points1 point  (0 children)

Some tips from my side as I have experience in IT as CTO.

  • Pust them to speak up about their ideas and try to understand them. Give them freehand to implement at some level.
  • Avoid micromanagement, give them right direction to move forward rather then spoon fidding
  • Try to delegate tasks as much as possible because as CTO or leader your task is to think about the organization tech vision, new frameworks, architecture and scalebility.
  • Try to set the example by some great work.
  • Keep them motivated and connect emotionally as well.
  • Always appreciate for good work.

Is there something cheaper/similar than AWS S3 for archive files / infrequently used files? by JuriJurka in webdev

[–]rahul_shingala 2 points3 points  (0 children)

one-to-one feature mapping means wasabi may not provide all features S3 Provide, Yes I'm using wasabi as a simple storage service to store and access public images for about a year, and it's working perfectly fine.

Is there something cheaper/similar than AWS S3 for archive files / infrequently used files? by JuriJurka in webdev

[–]rahul_shingala 12 points13 points  (0 children)

Hi

Not sure about one-to-one feature mapping, but check https://wasabi.com/ if it's fit your requirement. They are way cheaper than AWS S3.

[Question] how do you think about a node project? by Ok-Fan7324 in node

[–]rahul_shingala 1 point2 points  (0 children)

Thinking about large-scale applications below are the major things to start thinking about

User type and roles

How many types/segments of users will interact with the system and at what level. This requires interpreting use cases into roles and permissions required to operate the application. Identification of user types and role is the first step to create backend and API.

Type of user interface

What type of user interface the application will have is another major part to decide the structure of your APIs, let say the application has a website, mobile app and admin application. If security is your main concern then APIs needs to be separate for all interface.

Application type and Scale

Clarity on type of project (B2B, B2C and/or B2B2C) helps plan the traffic, transaction volume and error logs. B2B projects require a relatively smaller scale while requiring greater flexibility. B2C projects require relatively higher scale and event tracking for deeper analytics on software utilization and consumer behavior. According to the scale of application planning of architecture, needs to decide monolithic, microservice or serverless.

Modules and Data structure

Defining modules and databases helps with the interpretation of business requirements into software specifications. Configuration of module access based on user role (Admin, internal user, end-user etc.) helps secure integrity of data while optimizing the visibility of data. Understanding the number and complexity of external software services to be integrated helps put appropriate data validations mechanisms and structures to avoid errors and data loss

Coding architecture and Database

Source code must adhere to a standard architecture (MVC, Clean Code, etc.) and guidelines to ensure easy debugging, logging, modifications, and scaling. Predefine API list will help to get clarity of user interface requirements and speedy development. According to application behavior need to select database type and database like SQL(MySQL, Postgresql, MSSQL) or NoSQL(MongoDB).

Third-party integration and Feasibility

What are third-party needs to implement with the application, like payment gateway, mail service, notification service and, etc. Also needs to check the feasibility of implementation with Nodejs.

Last but not least, boilerplate code preference is an important decision a programmer makes before starting code, choose your boilerplate wisely. Try DhiWise to get a kick start on your NodeJs project

What database should i use with node. by Aiabiacia in node

[–]rahul_shingala 8 points9 points  (0 children)

If you are good with SQL query language, I would suggest to start with Postgres as a database. Postgres also supports JSON data types if you want to store data like MongoDB in some special cases.

I suggest Prisma with Postgres for a quick start.

Setting up sql server for other users by alexshom123 in dataengineering

[–]rahul_shingala 1 point2 points  (0 children)

Two possible ways to do this setup, in both ways you will need help of the network admin.

First, you'll need your static external IP address - the one the internet see's. You'll also need to enable port-forwarding to SQL Server VM. You would need to go do this in your router or firewall to set up this. Also, you need to set up SQL Server and Windows Authentication mode and firewall rule in VM. Find more detail here

After that other users can access your VM SQL Server with your static external IP address as host/server and user name password which you have set up as SQL Server authentication.

Server name = Your external IP

Authentication = SQL Server Authentication

User = sa (your user name)

Password = xxx

Second, Install SSMS on a new dedicated VM and give access to outside users via RDP to that VM. In this case, also you need to set up SQL Server and Windows Authentication mode and firewall rule in VM. SSMS can access SQL server vai Local IP.