Skip to content

Improvements for local development #75

@RafaelVidaurre

Description

@RafaelVidaurre

To avoid getting our devs stuck on some problem in our local environment, we still have to do some extra work to make sure we help them avoid common issues.

The rule should be: "A developer without previous knowledge about our code must be able to test, build and run apps and scripts without any help".

This is a list of things I believe we need to achieve this (feel free to add more):

  • Environment variables should be checked on startup: Any environment variable required by a package has to be pre-checked on startup, providing a helpful error if they are not set.
  • A place to retrieve secrets for our team members: Lastpass would be a good place for this, this is where PAI keys and other private values should be available for our team members
  • Setup instructions for all services needed to run our apps: Anything that needs to be installed before running our code should be explained in our README.md file. (Things like mongodb, yarn or nvm for example)
  • When possible, errors should give instructions to fix the issue: Instead of receiving Contract not deployed to network 42 we should get something like Smart contracts were not detected in the network you are trying to connect, you should run "local-blockchain:generate: to fix this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions