frankcollins3 / PHPokedex

react concepts
0 stars 0 forks source link

{common: 👍 } || {ES6 module: 👎} non common syntax [8:53am] #11

Closed frankcollins3 closed 1 year ago

frankcollins3 commented 1 year ago

👍 const express = require('express'); 👎 import express from 'express';

first proposed approach: configure express && node with server.js/index.js on the front end only

👎 instead of handling config in the directory from which our backend API will execute probably w/ express Router.get(): Screen Shot 2023-05-05 at 8 54 40 AM

👍 do a quick set up in the front end directory to avoid concerns outside of invoking express() correctly.

Screen Shot 2023-05-05 at 8 54 44 AM

There isn't a need to let any other problems like correctly preparing the path string to hit the /backend folder (mkdir)

frankcollins3 commented 1 year ago

Screen Shot 2023-05-05 at 9 02 09 AM

[9:02am]

frankcollins3 commented 1 year ago

Screen Shot 2023-05-05 at 9 07 34 AM

Screen Shot 2023-05-05 at 9 08 36 AM

server has woken up.

[9:08am]