Skip to content

Commit 6b97cab

Browse files
committed
readme, license, setup scripts for mono repo
Cherry-pick of commit b5377a0 onto dev/4-amethyst
1 parent 60a7954 commit 6b97cab

File tree

7 files changed

+716
-86
lines changed

7 files changed

+716
-86
lines changed

LICENSE

Lines changed: 661 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Obojobo Next
2+
3+
Obojobo Next is a modern educational content ecosystem. Obojobo documents are programmable, extend-able, and heavily fortified with data analytics.
4+
5+
Our focus is on making and delivering fantastic learning content to students. Obojobo is not a [Learning Management System](https://en.wikipedia.org/wiki/Learning_management_system). Rather, it's and incredibly powerful content engine for use inside your LMS.
6+
7+
View the [Obojobo Next Documentation](https://ucfopen.github.io/Obojobo-Docs/).
8+
9+
## The Obojobo Mission
10+
11+
To keep our collective efforts aimed in the same direction, we've outlined what we want Obojobo to be:
12+
13+
1. UI/UX focused design that ensures a satisfying & enjoyable student experience.
14+
2. Low barrier of entry for content creators. Creating content is as easy as writing a document in Word.
15+
3. Research centric design. Obojobo aims to be the premiere research-enabling learning platform by providing high resolution data, partnering with researchers, and including proven research outcomes back into the platform.
16+
4. Extraordinary practice and assessment tools that enable emerging teaching and learning models.
17+
5. Provide innovative new capabilities in online, blended, and mixed mode courses.
18+
6. Architecturally extensible and modular. Obojobo Next is easy to customize and extend.
19+
20+
## Requirements
21+
22+
* [Node](https://nodejs.org/) & [Yarn](https://yarnpkg.com/)
23+
* [PosgreSQL](https://www.postgresql.org/) Database
24+
* [Docker](https://www.docker.com/) (for development)
25+
26+
## Development Setup
27+
28+
1. clone this repo
29+
2. run `yarn install` to install dependencies
30+
3. run `yarn setup` runs a basic setup script to build assets and setup a docker database container
31+
4. run `yarn dev` to start the development express server
32+
7. visit [https://127.0.0.1:8080](https://127.0.0.1:8080) - You should see "Welcome to Obojobo Next"
33+
34+
> Familiarize yourself with the **scripts** section of package.json.
35+
36+
### Logging in
37+
38+
To view the example object you need to login via an LTI launch. Instructions are available in Obojobo: [https://127.0.0.1:8080/lti](https://127.0.0.1:8080/lti)
39+
40+
### Create New Documents:
41+
42+
Once logged in, visit [https://127.0.0.1:8080/editor](https://127.0.0.1:8080/editor). Click **+ Create New Draft** to get started.
43+
44+
### Testing
45+
46+
`yarn test` or `yarn test:ci`

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"private": true,
33
"name": "obojobo-next",
44
"scripts": {
5+
"setup": "cd node_modules/obojobo-document-engine && yarn build && cd ../obojobo-express && yarn db:rebuild",
56
"dev": "cd node_modules/obojobo-express && yarn dev",
67
"dev:docEngine": "concurrently \"cd node_modules/obojobo-express && yarn dev\" \" cd node_modules/obojobo-document-engine && yarn start\"",
78
"test": "cd node_modules/obojobo-document-xml-parser && yarn test && cd ../obojobo-express && yarn test && cd ../obojobo-document-engine && yarn test",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
This is the draft document viewer for Obojobo Next. Documentation & install instructions for this project can be found at https://github.com/ucfcdl/Obojobo-Next.
1+
This is the Obojobo Next Document Engine. Documentation for this project can be found at https://github.com/ucfcdl/Obojobo-Next.

packages/obojobo-express/README.MD

Lines changed: 1 addition & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1 @@
1-
# Obojobo 3 Server
2-
3-
About this project.
4-
5-
## Requirements
6-
7-
* Node 6
8-
* Yarn
9-
* Posgress Database
10-
* Docker (for development)
11-
* Nginx (for production)
12-
13-
## Development Setup
14-
15-
The scripts section of package.json will be useful to learn.
16-
17-
1. clone this repo into a directory
18-
2. run `yarn` to install packages
19-
3. run `yarn db:initdocker` to create a postgress docker container
20-
4. run `yarn db:migrateup` to run migrations
21-
5. run `yarn sampleDraft:seed` to insert a sample document into the database
22-
6. run `yarn dev` to start the development express server
23-
7. visit `https://127.0.0.1:8080` - You should see "Welcome to Obojobo Next"
24-
25-
To view the example object you need to create an LTI login. You an use an LTI testing tool for this:
26-
27-
1. Visit `http://ltiapps.net/test/tc.php`
28-
2. Set the **Launch URL** to `https://127.0.0.1:8080/view/00000000-0000-0000-0000-000000000000`
29-
3. Set the **Consumer key** to `testkey`
30-
4. Set the **Shared secret** to `testsecret`
31-
5. Click **Save Data**
32-
6. Click **Launch TP in new window**
33-
34-
To create, edit and delete objects:
35-
36-
1. Login as above
37-
2. Visit `https://127.0.0.1:8080/editor` - You should not see any objects. Click **+ Create New Draft** to get started.
38-
39-
## Developing Obojobo Document Engine
40-
41-
1. run `yarn devDocEngine:setup` to install a dev copy of doc engine
42-
2. run `yarn devDocEngine:link` to replace the node_modules version with your development Doc Engine located in /devsrc/
43-
3. run `yarn dev:docEngine`
44-
45-
## Developing Obojobo XML Parser
46-
47-
1. run `yarn devXmlParser:setup` to install a dev copy of the parser
48-
2. run `yarn devXmlParser:link` to replace the node_modules version with your development parser located in /devsrc/
49-
50-
## Testing
51-
52-
`yarn test` and `yarn test:ci`
53-
54-
## Production Setup
55-
56-
1. clone this repo into a directory
57-
2. run `yarn` to install packages
58-
3. setup your postgress database and add the credentials to `config/db.json`
59-
4. run `yarn db:migrateup` to run migrations
60-
5. run `yarn sampleDraft:seed` to insert a sample document into the database
61-
6. run `yarn assets` to compile the javascript and css assets
62-
7. run `yarn start` to run the server on port 3000
63-
8. Set up nginx server to pass requests to the server
64-
7. visit `https://127.0.0.1:8080/`
65-
66-
## Administration
67-
68-
## Logging with AWS Cloudwatch
69-
70-
* Install https://github.com/jorgebastida/awslogs on your machine
71-
* Search for a list of log groups you can read: `awslogs groups`
72-
* Learn about awslogs using `awslogs --help`
73-
* Logs from the last day: `awslogs get GROUPNAME --start='1d ago'` (Replace `GROUPNAME`)
74-
* Watch logs: `awslogs get GROUPNAME --watch`
75-
76-
77-
## Installing Obojobo Modules
78-
79-
### Adding new ones
80-
### Blacklisting
81-
### Express.js
1+
This is the Obojobo Next Express Server. Documentation for this project can be found at https://github.com/ucfcdl/Obojobo-Next.

packages/obojobo-express/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"db:reset": "node_modules/.bin/db-migrate reset --config config/db.json",
1010
"db:migrateup": "node_modules/.bin/db-migrate up --config config/db.json",
1111
"db:migratedown": "node_modules/.bin/db-migrate down --config config/db.json",
12-
"db:createmigration": "node_modules/.bin/db-migrate create --config config/db.json",
13-
"db:remove": "docker kill db_postgres && docker rm db_postgres",
14-
"db:rebuild": "yarn db:remove && yarn db:initdocker && sleep 4 && yarn db:migrateup && yarn sampleDraft:seed",
12+
"db:createmigration":"node_modules/.bin/db-migrate create --config config/db.json",
13+
"db:remove": "(docker kill db_postgres || true) && (docker rm db_postgres || true)",
14+
"db:rebuild":"yarn db:remove && yarn db:initdocker && sleep 4 && yarn db:migrateup && yarn sampleDraft:seed",
1515
"sampleDraft:seed": "node ./bin/sample_draft.js seed",
1616
"sampleDraft:watch": "node ./bin/sample_draft.js watch",
1717
"assets": "yarn assets:docEngine && webpack --mode production --optimize-minimize",

packages/obojobo-express/views/lti_launch_static.ejs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@
1313
<h3>Testing LTI Launch</h3>
1414
<ol>
1515
<li>Visit the <a href="http://lti.tools/saltire/tc" target="_blank">IMS LTI Tool Consumer Emulator</a></li>
16-
<li>Set <b>Message Type</b> to one of:
16+
<li>Optional - Select <b>Message</b> on the left side menu</li>
17+
<li>Optional - Set <b>Message URL</b> to one of:
1718
<ul>
1819
<li><code>basic-lti-launch-request</code></li>
1920
<li><code>ContentItemSelectionRequest</code></li>
2021
</ul>
2122
</li>
23+
<li>Select <b>Tool Provider</b> on the left side menu</li>
2224
<li>Set <b>Message URL</b> to one of:
2325
<ul>
2426
<li><code><%= launch_url %></code></li>

0 commit comments

Comments
 (0)