-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
59 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
COSMIC_BUCKET=col-admin | ||
COSMIC_READ_KEY=PASTE-YOUR-API-KEY-HERE | ||
COSMIC_WRITE_KEY=PASTE-YOUR-API-KEY-HERE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,47 @@ | ||
# col-admin | ||
# col-admin: Client side grid lookup app with Vue, Cosmic JS, and Vuetify | ||
|
||
<img src="./images/main_screen_large.png" alt="Col-Admin Main Screen" /> | ||
|
||
# Links | ||
|
||
<a href="#" target="_blank">Demo</a> | ||
|
||
<a href="#" target="_blank">Tutorial article</a> | ||
|
||
# Libraries | ||
|
||
* Vue | ||
* Vuex | ||
* Vuetify | ||
* Cosmic JS | ||
* Moment JS | ||
|
||
# Project setup | ||
|
||
## Project setup | ||
``` | ||
# install dependencies | ||
npm install | ||
``` | ||
### Compiles and hot-reloads for development | ||
``` | ||
# compiles and hot-reloads for development | ||
npm run serve | ||
``` | ||
### Compiles and minifies for production | ||
``` | ||
# compiles and minifies for production | ||
npm run build | ||
``` | ||
### Lints and fixes files | ||
``` | ||
# configure env variables | ||
rename .env.sample to .env and paste your API keys | ||
# before you delploy to Cosmic | ||
change you .env config | ||
npm build | ||
npm start | ||
# if all works, then you can delpoy to Cosmic JS from the dashboard -> settings -> hosting | ||
# Lints and fixes files | ||
npm run lint | ||
``` | ||
|
||
<img src="./images/main_screen_large.png" alt="Col-Admin Main Screen" /> |
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
var express = require('express') | ||
var serveStatic = require('serve-static') | ||
require('dotenv').config() | ||
|
||
var app = express() | ||
app.use(serveStatic(__dirname + "/dist")) | ||
|
||
var port = process.env.PORT || 5000 | ||
app.listen(port) | ||
|
||
console.log('server started '+ port) |