All models are defined in src/db
- Start by cloning this repository.
- In root directory, run
npm install. - Create local
debelopmentandtestdatabases. - Add your database config in
config. - Next,
npm run db:initializewill seed the local PSQL database. Warning: This will drop the database if it exists. - Then run
npm startwhich should start the server. - On
http://localhost:3001/graphqlthe graphql should be running for post actions, or you can test it usinghttps://studio.apollographql.com/sandbox/explorer.
Easy way to test if everything is working, go to http://localhost:3001/posts


