The Pet Library is a real pet library checkout system for a fake pet library. The purpose of the Pet Library is to teach developers how to work with the GraphQL Query Language and how to send queries, mutations, and subscriptions to this API.
git clone https://github.com/moonhighway/pet-library.git
cd pet-library
npm install
Or use yarn:
yarn
This project will use Mongo as a database. If you aren't a user of Mongo already, you can install Mongo locally, or use mLab, a cloud-based version of Mongo, for this app.
For further installation instructions, check out these resources:
You will need to add variables for MONGODB_URI
and SECRET
.
MONGODB_URI
is the route where your installation of Mongo is running. This usually runs atmongodb://localhost:27017/pet-library
.SECRET
is just a text string (can be anything) so that the user auth works as expected:
MONGODB_URI=<YOUR_MONGO_URI_HERE>
SECRET=<YOUR_AUTH_SECRET_HERE>
Run the following command: npm run dev
.
This project was created by Alex Banks and Eve Porcello from Moon Highway.