With Version 2, this Open Source project is now open for contribution! You can help by improving the documentation, submitting bug reports & feature requests, writing code or enhancing the actual API data.
-
Option 1
- 🍴 Fork this repo!
-
Option 2
- 👯 Clone this repo to your local machine using
https://github.com/gitfrosh/lotr-api.git
- 👯 Clone this repo to your local machine using
- you'll need MongoDB Community Edition running on your machine, listening on default port 27017
- start a shell and restore LotR data with
mongorestore -d lotr --verbose ./db/bson
- move into the backend folder
cd backend
- install packages with
npm install
- get your express server started with
node server.js
on localhost:3001
- move into the frontend folder
cd frontend
- install packages with
npm install
- get your development server started with
npm start
on localhost:3000
- navigate to http://localhost:3000 and sign up
- use your favorite Mongo client to access user documents and get your new access_token for using the secured APIs
- OR login with your credentials in the Frontend to get your token
- navigate to the specific project (backend or frontend) and execute
npm test
.
The API data is far from perfect: There might be spelling mistakes, duplicates, wrong or missing data. You are very welcome to fix data to be included in the next release!
-
Option 1
- 🍴 Fork this repo!
-
Option 2
- 👯 Clone this repo to your local machine using
https://github.com/gitfrosh/lotr-api.git
- 👯 Clone this repo to your local machine using
-
move into the database folder
cd db/csv
-
make your improvements in one of the data CSV files
-
🔃 Create a new pull request using
https://github.com/gitfrosh/lotr-api/compare
.