opencollective / opencollective-api

Open Collective's API. A GraphQL API powered by Sequelize and PostgreSQL.
https://api.opencollective.com
MIT License
417 stars 266 forks source link

Developer experience #40

Closed arnaudbenard closed 8 years ago

arnaudbenard commented 8 years ago

We started a conversation about developer experience (DX) throughout the project:

Talking about DX (Developer Experience), it would also be good to standardize the way
we start each server.
Right now, it’s `npm start` for the api, `npm run dev` for the mobileapp 
and `node server` for the website.

Also the default user of the db is philmod.

I have started laying some groundwork with the reset script (https://github.com/OpenCollective/opencollective-api/pull/38) but it needs some polishing. Indeed, you will get an error because Stripe already registered the email ops@opencollective.com.

Things to take into account

mobileapp

The difference between mobileapp and api is that we need to compiled the assets in development for the mobileapp.

@xdamman suggested having npm start --autoreload flag. I'm not sure how to implement that yet. It's easier for me to have a separate command for now.

I think that having npm start everywhere is a good idea.

arnaudbenard commented 8 years ago

I'm also up to have standard https://www.getpostman.com/ scripts for all the devs