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 ).
2020-02-20 23:12:38 +00:00
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
2020-02-29 16:31:07 +00:00
Download Oasis from GitHub over HTTPS.
2020-01-03 23:04:16 +00:00
```shell
git clone https://github.com/fraction/oasis.git
```
2020-02-29 16:31:07 +00:00
## Install dependencies
2020-01-03 23:04:16 +00:00
2020-02-29 16:31:07 +00:00
Most people should build and install Oasis with npm.
2020-01-03 23:04:16 +00:00
```shell
2020-02-29 16:31:07 +00:00
cd oasis
npm install --only=prod
2020-01-03 23:04:16 +00:00
```
2020-02-29 16:31:07 +00:00
## Start
2020-01-03 23:04:16 +00:00
2020-02-29 16:31:07 +00:00
You can try Oasis without installing with:
2020-01-03 23:04:16 +00:00
```shell
2020-02-29 16:31:07 +00:00
node .
2020-01-03 23:04:16 +00:00
```
2020-02-29 16:31:07 +00:00
## Install globally
2020-01-03 23:04:16 +00:00
2020-02-29 16:31:07 +00:00
If you want to install to make `oasis` available globally:
2020-01-03 23:04:16 +00:00
```shell
2020-02-29 16:31:07 +00:00
npm -g install .
2020-01-03 23:04:16 +00:00
```
2020-02-29 16:31:07 +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 ).