- Install all npm packages with
npm install
. - Create a
.env
file in the root directory. Inside the file, typePG_URI=
, followed by your db URI (no quotes). (Alternately, you could replaceenv.process.PG_URI
in thedbConnect.js
file with your own db URI.) - Spin up the server with
npm start
. - Make a request to
http://localhost:3000/db/schemas
with your browser (or a tool like Postman), and view the basic schema data for your database. This data can then be used for other purposes, such as creating schemas for a GraphQL API.
QuestionMark3/postgres-introspection
Returns schema data from PostgreSQL database when URI is entered
JavaScript