To run the news app locally,
- Download all the project files in your device and cd into the project folder.
- Now, run the
npm i
command to install all the node modules. - After this, create a new database called
news
in Postgre SQL and then execute the queries given in queries.sql file. - Update the SQL password in your index.js and server.js files.
- Run the
npx nodemon index.js
to ensure the working of API and then open a new terminal to simultaneously runnpx nodemon server.js
to ensure the working of the news app. - Now visit
localhost:4000
and register with your credentials to access the website.