soapbox/docs/development/running-locally.md

45 wiersze
958 B
Markdown
Czysty Zwykły widok Historia

# Running locally
To get it running, just clone the repo:
```
git clone https://gitlab.com/soapbox-pub/soapbox.git
cd soapbox-fe
```
Ensure that Node.js and Yarn are installed, then install dependencies:
```
yarn
```
Finally, run the dev server:
```
yarn dev
```
**That's it!** 🎉
It will serve at `http://localhost:3036` by default.
2022-07-18 17:16:11 +00:00
You should see an input box - just enter the domain name of your instance to log in.
Tip: you can even enter a local instance like `http://localhost:3000`!
## Troubleshooting: `ERROR: NODE_ENV must be set`
Create a `.env` file if you haven't already.
2022-07-18 17:16:11 +00:00
```sh
cp .env.example .env
```
And ensure that it contains `NODE_ENV=development`.
Try again.
2022-07-18 17:16:11 +00:00
## Troubleshooting: it's not working!
Run `node -V` and compare your Node.js version with the version in [`.tool-versions`](https://gitlab.com/soapbox-pub/soapbox/-/blob/develop/.tool-versions).
2022-07-18 17:16:11 +00:00
If they don't match, try installing [asdf](https://asdf-vm.com/).