I am a beginner in nodejs and I am trying to build a simple local web application which resides on a linux vm machine. Choose nodejs because it doesnt depends on IIS manager/Windows and because im only familiar with javascript/c#.As there are many frameworks to choose from, I have chosen the following stack to work on. My goal for now is just to display data from postgresql database onto the webpage but so far failed to do so.I have the following packages installed -pg -knex (for migration of db?) -dotenv (for retrieving postgresql server credentials) -expressAnd I have generated express template using express-generator. I'm using pool.query to do a simple select all from the database but I ended up getting a Promise pending. Thus, I was comtemplating to use pg-promise/sequelize package instead and not sure if I'm heading towards the correct direction.Thank you in advance :)
Submitted January 19, 2020 at 03:17AM by lightcomet
No comments:
Post a Comment