Skip to content
프로젝트

소개

Open Collective의 API입니다. Sequelize와 PostgreSQL을 기반으로 하는 GraphQL API입니다.

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
+1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Open Collective API

Discord

Foreword

If you see a step below that could be improved (or is outdated), please update the instructions. We rarely go through this process ourselves, so your fresh pair of eyes and your recent experience with it, makes you the best candidate to improve them for other users. Thank you!

Development

Prerequisite

  1. Make sure you have Node.js version 24.x and NPM version 11.x.
  • We recommend using nvm: nvm install && nvm use.
  1. Make sure you have a PostgreSQL database available
  1. For node-gyp, make sure you have Python 2 available and configured as the active version.
  • You can use pyenv to manage Python versions.

Install

We recommend cloning the repository in a folder dedicated to opencollective projects.

git clone [email protected]:opencollective/opencollective-api.git opencollective/api
cd opencollective/api
npm install

Start

npm run dev

See the dev docs for querying basics.

Troubleshooting

  • If you're running into node-gyp issues related to Python 3 vs Python 2, you can run: npm rebuild
  • If you have issues with PostgreSQL, check our dedicated documentation

Running tests

If your setup requires some specific values (e.g. custom database URL), create a .env.test file in the root of the project and set the values there.

To setup the test database, run npm run db:restore:test.

Tests can then be run with npm run test or npm run test:watch (watch mode). Since the full test suite can be quite heavy, we recommend passing the files you want to test as arguments to the command:

npm run test test/server/models/SocialLink.test.ts

Deployment

Summary: This project is currently deployed to staging and production with Heroku. To deploy, you need to be a core member of the Open Collective team.

See: docs/deployment.md

More documentation:

Discussion

If you have any questions, ping us on Discord.

License

MIT

관련 프로젝트 살펴보기

불러오는 중…