2022-01-06 18:48:30 +00:00
|
|
|
# Manifold Markets web
|
2021-12-02 21:44:08 +00:00
|
|
|
|
2021-12-02 23:39:11 +00:00
|
|
|
## Getting Started
|
2021-12-02 21:44:08 +00:00
|
|
|
|
2022-04-02 19:12:33 +00:00
|
|
|
1. `yarn` to install all dependencies
|
|
|
|
2. `yarn dev:dev` to bring up a local instance, pointing to dev database)
|
2021-12-02 21:44:08 +00:00
|
|
|
3. Your site will be available on http://localhost:3000
|
2021-12-02 23:39:11 +00:00
|
|
|
|
2022-04-02 19:12:33 +00:00
|
|
|
(`yarn dev` will point you to prod database)
|
|
|
|
|
2022-04-25 15:46:35 +00:00
|
|
|
### Running with local emulated database and functions
|
|
|
|
|
|
|
|
1. `yarn serve` first in `/functions` and wait for it to start
|
|
|
|
2. `yarn dev:emulate` will point you to the emulated database
|
|
|
|
|
2021-12-02 23:39:11 +00:00
|
|
|
## Formatting
|
|
|
|
|
2022-04-02 19:12:33 +00:00
|
|
|
Before committing, run `yarn format` to format your code.
|
2021-12-02 23:39:11 +00:00
|
|
|
|
|
|
|
Recommended: Use a [Prettier editor integration](https://prettier.io/docs/en/editors.html) to automatically format on save
|
2021-12-08 16:30:29 +00:00
|
|
|
|
|
|
|
## Developer Experience TODOs
|
|
|
|
|
|
|
|
- Prevent git pushing if there are Typescript errors?
|