I decided to create a website builder where users can sign up, create their shop, put their products. The issue is I can’t understand how website builders automatically generate the website and assign the subdomain to the website so that the user can access it instantly and, on top of that, they can use their own domain. I just can’t figure out a solution that can automate this stuff. I have no idea how to do this.
Via Active questions tagged javascript - Stack Overflow https://ift.tt/JTPrv78
I am trying to pull some data from a Postgres database using Node.js and node-postures but I can't figure out why my service isn't connecting. my routes/index.js file: const express = require('express'); const router = express.Router(); const ordersCountController = require('../controllers/ordersCountController'); const ordersController = require('../controllers/ordersController'); const weeklyReportsController = require('../controllers/weeklyReportsController'); router.get('/orders_count', ordersCountController); router.get('/orders', ordersController); router.get('/weekly_reports', weeklyReportsController); module.exports = router; My controllers/weeklyReportsController.js file: const weeklyReportsService = require('../services/weeklyReportsService'); const weeklyReportsController = async (req, res) => { try { const data = await weeklyReportsService; res.json({data}) console...
Comments
Post a Comment