The GraphQL API to the inventory of everything.
Use App
·
Report Bug
·
Request Feature
Table of Contents
The everything api is the interface of the inventory of everything: a centralized database of real, tangible assets that can then be used as the foundation for decentralized marketplaces, services, tools-- in the effort to create a circular economy that makes sense for everyone.
- through using Postgraphile
Ensure you have these packages and tools installed on your machine before installing this project.
- npm
npm install npm@latest -g
- Docker Desktop
- Clone the repo
git clone https://github.com/near-everything/api.git
- Install NPM packages
npm install
- Start docker - this will start and bootstrap the PostgreSQL database, pgAdmin web, and firebase emulators for authentication and storage
npm run docker:up
- Run the server:
npm start dev
- Explore:
Access to GraphiQL:
http://localhost:4050/graphiql
TROUBLESHOOTING: Since GraphiQL authorization headers are not yet connected to firebase auth, you will need to comment out the token verification in index.ts pgSettings (comment out whole block) in order to successfully run queries
Access to PostgreSQL:
localhost:5432
- Username: postgres (as a default)
- Password: changeme (as a default)
Access to pgAdmin:
- URL:
http://localhost:5050
- Username: [email protected] (as a default)
- Password: admin (as a default)
pgAdmin can also be accessed via the desktop app, which can be downloaded here.
- TBD...
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Elliot Braem - [email protected]
- Postgres, PgAdmin, docker setup referenced from compose-postgres.