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
- Host: GitHub
- URL: https://github.com/casper-network/cn-website-frontend
- Owner: casper-network
- License: mit
- Created: 2022-08-18T20:43:21.000Z (almost 4 years ago)
- Default Branch: development
- Last Pushed: 2024-08-22T08:47:08.000Z (almost 2 years ago)
- Last Synced: 2024-08-22T13:05:24.869Z (almost 2 years ago)
- Language: Vue
- Size: 15.1 MB
- Stars: 3
- Watchers: 4
- Forks: 13
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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