https://github.com/moonhighway/pet-library
A library for pets π±πΆπ°
https://github.com/moonhighway/pet-library
Last synced: 11 months ago
JSON representation
A library for pets π±πΆπ°
- Host: GitHub
- URL: https://github.com/moonhighway/pet-library
- Owner: MoonHighway
- Created: 2019-02-28T02:05:14.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2025-07-23T23:09:33.000Z (11 months ago)
- Last Synced: 2025-07-24T01:34:53.083Z (11 months ago)
- Language: JavaScript
- Homepage: https://pet-library.moonhighway.com
- Size: 267 KB
- Stars: 53
- Watchers: 3
- Forks: 13
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pet Library API
## Overview
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.
## Installation
### 1. Clone or download this repository.
```
git clone https://github.com/moonhighway/pet-library.git
cd pet-library
```
### 2. Install the dependencies.
```
npm install
```
Or use yarn:
```
yarn
```
### 3. Set up Mongo locally.
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](https://mlab.com), a cloud-based version of Mongo, for this app.
For further installation instructions, check out these resources:
- [Mongo Installation for Mac](https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/)
- [Mongo Installation for PC](https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows/)
- [Local Instructions for Mongo & mLab](https://gist.github.com/eveporcello/e80a90f39de3b63a9c20136536f477df)
### 4. Add a `.env` file to the root of your project.
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 at `mongodb://localhost:27017/pet-library`.
- `SECRET` is just a text string (can be anything) so that the user auth works as expected:
```
MONGODB_URI=
SECRET=
```
## Starting the Project - Dev Mode
Run the following command: `npm run dev`.
This project was created by [Alex Banks](http://twitter.com/moontahoe) and
[Eve Porcello](http://twitter.com/eveporcello) from
[Moon Highway](https://www.moonhighway.com).