Closed Balsam-Faysal closed 6 years ago
@Balsam-Faysal How do I run your server with client? And what do I need to do with the database?
@NoureldeanSaed As we did :
npm run buildDb
npm run build
npm run client:build
npm start
from both servers . "I used the 'concurrently' module but my team ignore it, this module run both servers instead you have to open tow windows in terminal one for the server and the other for react .
Go deep in app from the window that react server opened > localhost:3000@Balsam-Faysal Can you please send the contents of your config.env
? Seems that you're having certain settings such as Dialect that I haven't added.
config.env
content :
SECRET=semsem
DB_NAME=airline
DB_USER=balsam
DB_PASS=airline
DB_DIALECT=postgres
@Balsam-Faysal
You can forget about the last error :sweat_smile: my bad.
npm i
for both package.json
@Balsam-Faysal Also it would be great to have a few comments on your functions that are 10+ lines.
I know its messy code but I do my best in the 'home/index.js' file any suggestion I will do it create pop up by using the module 'react-modal' get the phone number and check of it is in DB then updating the customer if he wanna check or not then get the flight details anyway then .. the user story here is :