oasis/docs/install.md

47 lines
1.1 KiB
Markdown
Raw Normal View History

2020-01-03 23:04:16 +00:00
# Install
This is a guide on how to download the source code for Oasis so that you can
2020-01-22 00:22:19 +00:00
build and install it on your computer. If you'd like an easier installation
2020-01-03 23:04:16 +00:00
option, try one of the options in the readme.
If you want to run Oasis in the background, see [`with-systemd.md`](./with-systemd.md).
If you want to run Oasis in a container, see [`with-docker.md`](./with-docker.md).
If you want to run Oasis on Android via Termux, see [`with-termux.md`](./with-termux.md).
2020-01-03 23:04:16 +00:00
## Download
Download Oasis from GitHub over HTTPS.
2020-01-03 23:04:16 +00:00
```shell
git clone https://github.com/fraction/oasis.git
```
## Install dependencies
2020-01-03 23:04:16 +00:00
Most people should build and install Oasis with npm.
2020-01-03 23:04:16 +00:00
```shell
cd oasis
npm install --only=prod
2020-01-03 23:04:16 +00:00
```
## Start
2020-01-03 23:04:16 +00:00
You can try Oasis without installing with:
2020-01-03 23:04:16 +00:00
```shell
node .
2020-01-03 23:04:16 +00:00
```
## Install globally
2020-01-03 23:04:16 +00:00
If you want to install to make `oasis` available globally:
2020-01-03 23:04:16 +00:00
```shell
npm -g install .
2020-01-03 23:04:16 +00:00
```
If you see a permission error, see [resolving EACCESS permission errors](https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally). If you any other problems, please [reach out for help](https://github.com/fraction/oasis/issues/new).