Is it ok for a NodeJs API to have both MongoDb and MySQL(with prisma), but for different purposes? - node.js

Let me explain, so, I'm building this web application that visualizes data and the dataset that I'm working with is uploaded on a mongodb cluster. I'm also planning on making a login system using prisma and mysql. Should I build a new api for the whole user part or work with both databases in the same project?

Related

Connecting to external database using React, Nodejs, Express, and PostgreSQL

I created a course management system using PHP and HTML. I use PostgreSQL to store data. I use my school's server and database where I could put my files on there with WinSCP and can connect to the database with putty via SSH where I can run queries. Everything works fine.
I am trying to do the exact same project using React, Nodejs, Express, and PostgreSQL. All the tutorials I see online show how to connect to a local database. I want to eventually publish this project and for it to communicate with the same database as my PHP project. Is that possible? So far, I was able to build the client-side of the application(react) but have not been able to communicate with the database (server-side). Any tips?

I am trying to connect Angular to MongoDB

I have a simple Angular app and it is running in Local Host 4200. How do I save the form values and store them in a MongoDB database?
Angular is a web framework dedicated for the client-side, MongoDB is
a NoSQL database, to save your data put into your angular app to your
Database, you need a server-side implementation like nodejs or
python, java, etc ..
I recommend for you to use expressjs as an API framework it can helps you to get started
Angular is not supposed to connect directly to a DB in an real project, so there is not much of a point to practice doing so. You should have an server-side application or a mock to do so. If you are trying to build a front for studies you can use packages such as this one to begin: https://www.npmjs.com/package/auto-api
It is of simple use and you can save data without configuring or installing a DB.

Does STRAPI helpful to develop REST api to connect Flutter app easily and cost effectively

These days, I'm developing a Car Service application using Flutter. I already developed my flutter app using mock data with json files. This is my flutter app
https://play.google.com/store/apps/details?id=com.clivekumara.srilankacarwashfinder
Now I want to develop own rest api. Basically below requirements should be handled in the rest api.
1. Image Uploding and store images
2. Mange authentications
3. Other entity crud operations
4. Location base functionalities.
For fullfill above requirements I research a backend techologies. This api sholud be faster and easy to implement. Also deployment cost sholud be less.
For that I choose StrApi CMS platform with Mongodb to develop this requirement.
Can you give me some idea that choson technologies are compatible with the requirement. What are the cost effective deployment technologies (Hosting space, Database server etc...) compatibility with this Strapi and mongodb .
I use strapi for building static websites. Its pretty easy to use and build fast API. I also saw some Flutter apps built with strapi backend and they work flawlessly. It seems to be a good choice but might be challenging sometimes specially if you are building a very complex app.
You can use Heroku for strapi hosting. They have a free plan that will be enough for development purpose. Note that Heroku does not give you space for your uploads like images. You will still need to buy some space on S3 or Digitalcean spaces or other services.
DigitalOcean has a Oneclick installation of Strapi. It costs $10/month and if you add a $5/month space to your plan then you have $15/month to start. For database Strapi comes with SQL Lite by default but you should use Postgres or MangoDB to build your project for production.

Angular with Oracle

I am trying to figure out if there is a way to build applications using Angular/ORDS/Oracle, i am new to this web stack. What i understood so far is we need one front end / back end / database to build entire application.
in general we use Angular/Nodejs/Sql Server to develop application. in this Angular is front ent/ Node js is used to build backend or web services. Sql server is the database.
Is there a good example or resource to learn how to build apps using Angular/ORDS/Oracle with one CRUD example.
With Oracle and ORDS, you'll just define some REST Services to feed data to your Angular app.
You'll hopefully be making VERY similar, GET, PUT, POST, & DELETE calls as you were doing before.
You can 'shape' the Service templates to have the mapping that you want. They are then back-ended by Oracle SQL and/or PL/SQL that runs in the database.
ORDS handles paging the results and transforming everything in and out of the database to {json}
I have lots of resources for you getting started with REST Services in Oracle here.

Feathersjs frontend and backend in a single project

I'm looking to build a small customer management portal for myself. I've recently started working with node and vuejs a lot (coming from an html/css/javascript background). I've really enjoyed CLI development though and am looking to build a customer management portal (nothing fancy) that has a MySQL backend. After studying frameworks and ideas I found feathersjs which I REALLY like. After a few hours I was able to have a REST api that returns data from my MySQL database and uses authentication. I can get MySQL data in a JSON datasource and even do inserts, updates, deletes. I generated the services and models using the feathersjs CLI generator.
My question is, do I really need to make two separate projects (one for backend and one for a public frontend) and run them each on a node server? Or could I do this in as single project? I'm still learning and reading up on feathersjs but I'm not seeing a way to make this possible. I do see a public folder in my feathersjs project that was generated but I don't know how to utilize it for node (I wanted my frontend written in Vue). I can see how static HTMLfiles would work in this public folder.

Resources