Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/almonk/splash-pages
Marketing splash pages for gocardless.com
https://github.com/almonk/splash-pages
Last synced: 8 days ago
JSON representation
Marketing splash pages for gocardless.com
- Host: GitHub
- URL: https://github.com/almonk/splash-pages
- Owner: almonk
- Created: 2014-12-14T22:18:35.000Z (about 10 years ago)
- Default Branch: dev
- Last Pushed: 2014-12-12T17:24:37.000Z (about 10 years ago)
- Last Synced: 2024-11-08T02:04:34.732Z (about 2 months ago)
- Language: JavaScript
- Size: 100 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## Dependencies
```bash
npm install
```## Running
```bash
npm start
```## Tests
```bash
npm test
```## Prerequisites:
- node.js: `brew install node`
- Edit your ~/.bash_profile or ~/.zshrc:```
PATH=node_modules/.bin:$PATH
```# Structure (what to change)
The site url structure maps the `app/pages/` folder excluding the index.html file.
`app/pages/features/index.html` would end up at `gocardless.com/features/`
CSS: `app/css/`
JS: `app/js/`
Images: `app/images/`
Fonts: `app/fonts/`
Static app: `app/public/`
Page templates: `app/templates/`
Shared template includes/partials: `app/includes/`# Troubleshooting
1. `npm start` fails
Try running `npm install`. Packages might be out of date.
2. `command` not found
Make sure you have reloaded your terminal after `2.` under `Setup to run locally`
3. Prospect forms are broken
You need to run gocardless at: gocardless.dev:3000
[http://localhost:9000/index.html](http://localhost:9000/index.html)
# Deploying
## Staging
Once a pull-request is merged it goes onto `dev` and gets deployed.
Deploys happen once CI tests pass. Circle CI will email about any failure.## Production
#### ! DO NOT COMMIT/PUSH STRAIGHT TO MASTER !
Production is deployed once tests on the `master` branch pass. Merge `dev` into
`master` with `--no-ff` to deploy.# Deploying manually
Set up AWS credentials (web ops):
```
export GC_AWS_ACCESS_KEY=ask webops
export GC_AWS_ACCESS_KEY=ask webops
```Testing:
```
$ AWS_S3_BUCKET=staging.gocardless.com make deploy
```Production:
```
$ AWS_S3_BUCKET=gocardless.com make deploy
```