An open API service indexing awesome lists of open source software.

https://github.com/casper-network/cn-website-frontend

This repository tracks the code related to the Web frontend service of the casper.network site
https://github.com/casper-network/cn-website-frontend

Last synced: 5 months ago
JSON representation

This repository tracks the code related to the Web frontend service of the casper.network site

Awesome Lists containing this project

README

          

# caspernetwork-website-frontend

## Project setup
```
yarn install
```

### Compiles and hot-reloads for development
```
yarn serve
```

### Compiles and minifies for production
```
yarn build
```

## Environment setup
To run and build the project, the following environment variables are required:
```
# Vue
VUE_APP_I18N_LOCALE=en-us
VUE_APP_LANGUAGES=en-us
VUE_APP_API_URL=https://{DIRECTUS-URL}
VUE_APP_TEAM_API=https://{DIRECTUS-URL}/items/team_members?fields=*.*&sort%5B%5D=sort&limit=-1
VUE_APP_ASSET_URL=https://{DIRECTUS-URL}/assets/
VUE_APP_ITEMS_URL=https://{DIRECTUS-URL}/items/
VUE_APP_ZOHO_ENDPOINT=https://oitn.maillist-manage.eu/weboptin.zc

# Prerender
PRERENDER_DOMAIN=prerender.casper.network
```

### Vue Variables
These are all neccessary for compiling the vue project.

* `VUE_APP_I18N_LOCALE` should always be `en-us`.
* `VUE_APP_LANGUAGES` is a comma separated list of available languages Currently only `en-us` exists.
* Replace `{DIRECTUS-URL}` with the URL where Directus lives.

### Prerender Variable
Set this according to the domain where the prerender is running