-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* init strapi * implemented initial content types * Organizing readme (#1) * updated readme * added git flow chart * fixed spelling err * Updated README and added yarn workspaces * Created React App and added lib functions * WIP: Ardulib not loading object from DOM * Fixed Blockly.Inject being called before component renders * Hotfix: Fixes getJS button crashing app * removed old topic and types * added complexity type, reassigned relationships, and edited field settings * init server readme * update er digram link * migrated from sqlite3 to mysql running in docker * init Dockerfile for production api image * wrapped project in docker compose, defined container for api, db, and compile * mv .dockerignore to server folder * scaffolding: server -> cms * updated main readme scaffolding and development sections * rm <br/> * update cms package * init compile * cleanup * un-md Dockerfile * Removed yarn workspace functionality and documentation * gitignore packages * run the compile service on port 8080 * build compile image in compose * set dev db host via env * updated project readme * added scripts for running compile and cms independently * fixed development link in cms and compile readmes * actually fixed the links * testing heroku deploy * yml vs yaml * service type for heroku is web * must be a string too! * WIP: Client not yet accessible from localhost * added entrypoint to client dockerfile and remapped volume/ports * added client development config for cms and compile host names * added client to main readme development section * Update README.md * Setup basic page routing * Passing activities to workspaces based on selection * WIP: Weird css bug * remove react from docker-compose * fixed react import issue * renamed containers created with compose * updated to latest beta of strapi and removed sqlite3 dependency * use mysql for all database environments * host helper for getting cms and compile hosts * add client homepage for build * root docker file builds client and cms and packages them together * host helper just saves consts * use postgres for production * Basic dynamic block rendering * database connection settings * don't use localhost * Added example model * Final cleanup * renmae host hellper * fix hosts import * dep update cms * Rename Hosts.js to hosts.js * use postgres * updated documentation * + documentation improvements * init app.json * added postgresql addon * as and options for app.json * use relative path for cms api calls * use localhost for development * Cleaned up warning messages, renamed app in manifest * Solves issue #18 - React builds but is not usable #18 * Updated client README * Cleaning up documentation * Changed client to use hosts.js in place of deployment config files * Updated git flow documentation * dakota made me do this :( * Setting correct paths for blockly libs * Added button hover information * created a middleware to serve the frontend w/ react router * updated documentation * public/frontend * fixed json parsing err on cms readme * update read me * dep * added public url to build process for cleaner client dev * fixed host resolution for cms @home view * git ignore public/frontend * include frontend folder * fix prod app bundling * Changed root routing from /Home to / * topics now has activities * Changed dependency use to imported script * Fixed CORS issue with strapi query during development * Cleaning up console.log statements for dev merge Fixing Merge conflict * Changed path to "/workspace" and fixed warnings * fixed build-frontend script err * added the .env file to the client setup documentation * updated root documentation to follow client setup * add localhost:1337 to development cors * removed client .env and added cross-env for build-frontend script * block category belongs to many blocks * updated admin build * activities are only related to their blocks now and return a custom toolbox * remove block category definition * blocks now have descriptions not definitions * enable dev db to build from an sql file * remove .cache * cross-env is not good * display nested activity details * Refactored activities to pull from updated API * Moved some js functionality to helper file * added type to topic find * restored activities find controller and created seperate route/hander for activities toolbox * created dataaccess layer to simplify api calls * implemented new api in client and added dataaccess calls * condensed dataaccess files * moved hosts to dataaccess * fix compile preflight err * bump * fixed missing toolbox on re-render * Update README.md * Update README.md * Formatting dump * clean up, clean up * update workspace useEffect for render err and sensitivety * added alert for arduino code * Abstraction is trash and so are you * wrote an init script that uses pg_restore rather than importing a .sql * updated documentation for adding the dump to scripts * script formating * All .sh files now keep LF line endings when pulled to windows * Updated documentation for /admin not beuilding * fixed comment in .gitattributes * migrated to strapi 3.0.1 * added custom ssl config * added template field to activity and removed topic from activity * review apps as containers * import staging db in review app * updated documentation links to latest strapi docs * get xml from workspace and load workspace w/ activity xml * Removed unnecessary function * Workspace now saves on page refresh * Removed alert for compile request Co-authored-by: Dakota <[email protected]> Co-authored-by: nionata <[email protected]>
- Loading branch information
1 parent
8da2757
commit 65c5a7b
Showing
15 changed files
with
384 additions
and
308 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
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,11 +1,13 @@ | ||
{ | ||
"name": "STEM-C", | ||
"description": "Web Blockly IDE for Arduino", | ||
"repository": "https://github.com/STEM-C/STEM-C", | ||
"stack": "container", | ||
"addons": [ | ||
{ | ||
"plan": "heroku-postgresql", | ||
"as": "DATABASE" | ||
} | ||
] | ||
], | ||
"scripts": { | ||
"postdeploy": "pg_dump $STAGING_DATABASE_URL | psql $DATABASE_URL && bundle exec rake db:migrate" | ||
} | ||
} |
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
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
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
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 |
---|---|---|
|
@@ -24,8 +24,7 @@ | |
"model": "type" | ||
}, | ||
"activities": { | ||
"collection": "activity", | ||
"via": "topic" | ||
"collection": "activity" | ||
} | ||
} | ||
} |
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,48 @@ | ||
/** | ||
* parses a PostgreSQL DB connection URL into the parts needed | ||
* by Strapi. Without this, heroku may throw ECONNREFUSED 127.0.0.1:xxxx. | ||
*/ | ||
|
||
const url = require('url') | ||
|
||
if (process.env.DATABASE_URL) { | ||
const parsed = url.parse(process.env.DATABASE_URL, true) | ||
const [username, password] = parsed.auth.split(':') | ||
|
||
process.env.DATABASE_HOST = parsed.hostname | ||
process.env.DATABASE_PORT = Number(parsed.port) | ||
process.env.DATABASE_NAME = parsed.pathname.substr(1) | ||
process.env.DATABASE_USERNAME = username | ||
process.env.DATABASE_PASSWORD = password | ||
} | ||
|
||
module.exports = ({ env }) => ({ | ||
defaultConnection: 'default', | ||
connections: { | ||
default: { | ||
connector: 'bookshelf', | ||
settings: { | ||
client: 'postgres', | ||
host: env('DATABASE_HOST', 'localhost'), | ||
port: env.int('DATABASE_PORT', 5432), | ||
database: env('DATABASE_NAME', 'strapi'), | ||
username: env('DATABASE_USERNAME', 'postgres'), | ||
password: env('DATABASE_PASSWORD', 'postgres'), | ||
schema: 'public', | ||
ssl: env('DATABASE_SSL', false) | ||
}, | ||
options: { | ||
// ssl: { | ||
// 'rejectUnauthorized': false | ||
// } | ||
'pool': { | ||
'min': 0, | ||
'max': 15, | ||
'idleTimeoutMillis': 30000, | ||
'createTimeoutMillis': 30000, | ||
'acquireTimeoutMillis': 30000 | ||
} | ||
} | ||
}, | ||
}, | ||
}) |
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,27 @@ | ||
module.exports = { | ||
timeout: 100, | ||
load: { | ||
before: ['responseTime', 'logger', 'cors', 'responses', 'gzip'], | ||
order: [ | ||
'Define the middlewares\' load order by putting their name in this array is the right order', | ||
], | ||
after: ['parser', 'router'], | ||
}, | ||
settings: { | ||
public: { | ||
path: './public', | ||
maxAge: 60000, | ||
}, | ||
// logger: { | ||
// // dev + prod | ||
// level: debug + info, | ||
// requests: true + false | ||
// } | ||
|
||
// dev | ||
// cors: { | ||
// enabled: true, | ||
// origin: ['http://localhost:3000', 'http://localhost:1337'] | ||
// }, | ||
}, | ||
} |
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,7 @@ | ||
module.exports = ({ env }) => ({ | ||
host: env('HOST', '0.0.0.0'), | ||
port: env.int('PORT', 1337), | ||
admin: { | ||
url: env('URL', '/admin') | ||
} | ||
}) |
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
Oops, something went wrong.