Skip to content

Commit

Permalink
first
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin R committed Jan 14, 2020
0 parents commit e3179aa
Show file tree
Hide file tree
Showing 15 changed files with 11,771 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .env.production
@@ -0,0 +1,9 @@
# This is here to ensure `npm run build` builds production-ready, complied, code to deploy to production.
NODE_ENV=production
VUE_APP_FIREBASE_API_KEY=$PROD_FIREBASE_API_KEY
VUE_APP_FIREBASE_AUTH_DOMAIN=$PROD_FIREBASE_AUTH_DOMAIN
VUE_APP_FIREBASE_DATABASE_URL=$PROD_FIREBASE_DATABASE_URL
VUE_APP_FIREBASE_PROJECT_ID=$PROD_FIREBASE_PROJECT_ID
VUE_APP_FIREBASE_STORAGE_BUCKET=$PROD_FIREBASE_STORAGE_BUCKET
VUE_APP_FIREBASE_MESSAGING_SENDER_ID=$PROD_FIREBASE_MESSAGING_SENDER_ID
VUE_APP_FIREBASE_APP_ID=$PROD_FIREBASE_APP_ID
9 changes: 9 additions & 0 deletions .env.staging
@@ -0,0 +1,9 @@
# This is here to ensure `npm run build` builds production-ready, complied, code to deploy to production.
NODE_ENV=production
VUE_APP_FIREBASE_API_KEY=$STAGING_FIREBASE_API_KEY
VUE_APP_FIREBASE_AUTH_DOMAIN=$STAGING_FIREBASE_AUTH_DOMAIN
VUE_APP_FIREBASE_DATABASE_URL=$STAGING_FIREBASE_DATABASE_URL
VUE_APP_FIREBASE_PROJECT_ID=$STAGING_FIREBASE_PROJECT_ID
VUE_APP_FIREBASE_STORAGE_BUCKET=$STAGING_FIREBASE_STORAGE_BUCKET
VUE_APP_FIREBASE_MESSAGING_SENDER_ID=$STAGING_FIREBASE_MESSAGING_SENDER_ID
VUE_APP_FIREBASE_APP_ID=$STAGING_FIREBASE_APP_ID
23 changes: 23 additions & 0 deletions .firebaserc
@@ -0,0 +1,23 @@
{
"projects": {
"production": "platform-production-9207d",
"staging": "digital-platform-staging",
"default": "digital-platform-staging"
},
"targets": {
"digital-platform-staging": {
"hosting": {
"staging-assessment-uploader-app": [
"assessment-uploader-staging"
]
}
},
"platform-production-9207d": {
"hosting": {
"production-assessment-uploader-app": [
"assessment-uploader-production"
]
}
}
}
}
21 changes: 21 additions & 0 deletions .gitignore
@@ -0,0 +1,21 @@
.DS_Store
node_modules
/dist

# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
26 changes: 26 additions & 0 deletions README.md
@@ -0,0 +1,26 @@
# Assessment Uploader

Independent assessors get a link to this page to upload their assessments.

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
5 changes: 5 additions & 0 deletions babel.config.js
@@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}
33 changes: 33 additions & 0 deletions firebase.json
@@ -0,0 +1,33 @@
{
"hosting": [{
"target": "staging-assessment-uploader-app",
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
},
{
"target": "production-assessment-uploader-app",
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
]
}

0 comments on commit e3179aa

Please sign in to comment.