You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -7,220 +7,9 @@ Cortex CMS is a [multitenant](https://en.wikipedia.org/wiki/Multitenancy) identi
7
7
8
8
Cortex follows a decentralized, API-only architecture - it is *not* built like Wordpress or Drupal, which are considered monolithic, all-in-one solutions.
9
9
10
-
## Table of Contents
10
+
## Documentation
11
11
12
-
-[Setup](#setup)
13
-
-[Environment](#environment)
14
-
-[Dependencies](#dependencies)
15
-
-[System](#system)
16
-
-[OS X](#os-x)
17
-
-[Linux](#linux)
18
-
-[Application](#application)
19
-
-[Database](#database)
20
-
-[Server](#server)
21
-
-[Deployment](#deployment)
22
-
-[Running Test Suite](#running-test-suite)
23
-
-[API](#api)
24
-
-[Documentation](#documentation)
25
-
-[Consuming Cortex](#consuming-cortex)
26
-
-[Authorization](#authorization)
27
-
-[Content](#content)
28
-
-[Localizations](#localizations)
29
-
-[Exceptions](#exceptions)
30
-
-[Applications Using Cortex](#applications-using-cortex)
31
-
-[Troubleshooting](#troubleshooting)
32
-
-[Contributing](#contributing)
33
-
-[License](#license)
34
-
-[Copyright](#copyright)
35
-
36
-
## Setup
37
-
38
-
### Environment
39
-
40
-
Copy and rename the example `.env.example` file as `.env` and modify it to match your environment.
41
-
42
-
For a rudimentary setup, these variables should be configured:
43
-
44
-
* Execute `$ bundle exec rails secret` twice to generate both an `APP_SECRET` and `DEVISE_SECRET`
45
-
* If the superuser isn't used for the app databases, the `DATABASE_USERNAME` and `DATABASE_PASSWORD` should be set accordingly.
46
-
47
-
### Dependencies
48
-
49
-
#### System
50
-
51
-
##### OS X
52
-
53
-
* Install the Xcode Command Line tools:
54
-
55
-
```sh
56
-
$ xcode-select --install
57
-
```
58
-
59
-
* Install all Cortex system-wide dependencies (and the `readline` Ruby/`byebug` build dependency) using [Homebrew](http://brew.sh/) from the `Brewfile` via `$ brew install $(cat Brewfile|grep -v "#")`
60
-
* Install Ruby via [rbenv](https://github.com/sstephenson/rbenv) or [rvm](https://rvm.io/).
* Install all Cortex system-wide dependencies (and the `readline` Ruby/`byebug` build dependency) using your distribution's package manager (`pacman`, `apt-get`, `yum`, etc). For example, with Ubuntu's `apt-get`:
Ubuntu and Redhat/Fedora do not have an official `elasticsearch` package - you must use Elasticsearch's repositories for [APT](https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html) or [RPM](https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html) or follow these [manual instructions](https://www.elastic.co/guide/en/elasticsearch/reference/current/_installation.html). The same goes for `phantomjs`. Build from [source](http://phantomjs.org/download.html) or use a [PPA](https://launchpad.net/ubuntu/+ppas?name_filter=phantomjs). Other Linux distributions likely have these as prebuilt packages in their official or user repositories.
94
-
95
-
* Install Ruby via [rbenv](https://github.com/sstephenson/rbenv) or [rvm](https://rvm.io/).
96
-
* Enable system agents using your distribution's service manager frontend, which is likely `systemd`'s frontend, `systemctl`:
97
-
98
-
```sh
99
-
$ systemctl enable postgresql
100
-
$ systemctl enable elasticsearch
101
-
$ systemctl enable redis
102
-
```
103
-
104
-
and start them with `systemctl`:
105
-
106
-
```sh
107
-
$ systemctl start postgresql
108
-
$ systemctl start elasticsearch
109
-
$ systemctl start redis
110
-
```
111
-
112
-
#### Application
113
-
114
-
* Install Bundler and its dependencies:
115
-
116
-
```sh
117
-
$ gem install bundler && bundle install
118
-
```
119
-
120
-
* Install `node`, then run Yarn to install frontend dependencies:
121
-
122
-
```sh
123
-
$ yarn install
124
-
```
125
-
126
-
### Database
127
-
128
-
* Create databases:
129
-
130
-
```sh
131
-
$ bin/rails db:create
132
-
```
133
-
134
-
* Initialize the schema:
135
-
136
-
```sh
137
-
$ bin/rails db:schema:load
138
-
```
139
-
140
-
* Seed database with a top-level tenant, the superuser and Custom Content data, then rebuild the ElasticSearch index:
141
-
142
-
```sh
143
-
$ bundle exec rake db:seed
144
-
$ bundle exec rake cortex:core:db:reseed
145
-
$ bundle exec rake cortex:rebuild_indexes
146
-
```
147
-
148
-
### Server
149
-
150
-
Start Cortex, Sidekiq and live rebuild/reload via Foreman:
151
-
152
-
```sh
153
-
$ gem install foreman
154
-
$ foreman start -f Procfile.dev-server
155
-
```
156
-
157
-
The admin interface should now be accessible locally on port `3000`. To access Cortex as superadmin, login as `[email protected]` with password `welcome1`.
158
-
159
-
### Deployment
160
-
161
-
Deploying the `development` environment as a non-local server will require an additional environmental variable be set:
162
-
163
-
```shell
164
-
DEPLOYED=true
165
-
```
166
-
167
-
This will configure various things to behave normally in a deployed scenario.
Cortex's live API documentation is available via Swagger. This contains specific endpoints, parameters, and response models.
190
-
191
-
SwaggerUI is provided at [http://docs.api.cbcortex.com/](http://docs.api.cbcortex.com).
192
-
193
-
Swagger Endpoints are available at [http://api.cbcortex.com/api/v1/swagger_doc.json](http://api.cbcortex.com/api/v1/swagger_doc.json).
194
-
195
-
## Consuming Cortex
196
-
197
-
### Authorization
198
-
199
-
Cortex's API utilizes [OAuth2](https://tools.ietf.org/html/rfc6749) for Authentication and Authorization. Client Credentials and Authorization Code [grant types](http://alexbilbie.com/2013/02/a-guide-to-oauth-2-grants/) are supported. Want to get up and running quickly with OAuth? Use Cortex's [Ruby client](https://github.com/cortex-cms/cortex-client-ruby) or [OmniAuth strategy](https://github.com/cb-talent-development/omniauth-cortex) for Client Credentials and Authorization Code grants, respectively.
200
-
201
-
Before an application can consume any data, OAuth credentials must be created for the consuming application in the 'Applications' section of the Cortex admin interface.
202
-
203
-
### Content
204
-
205
-
Content can be consumed from a feed or via the resource's endpoint directly. Use the [cortex-client](https://github.com/cbdr/cortex-client) gem to easily consume any content resource and use it in your application.
206
-
207
-
### Localizations
208
-
209
-
Localizations can be consumed via the client or via [i18n-backend-cortex](https://github.com/cortex-cms/i18n-backend-cortex), which allows easy localization for Rails applications.
210
-
211
-
### Exceptions
212
-
213
-
If a consuming or companion application would like to produce Cortex-equivalent exceptions, use the [cortex-exceptions](https://github.com/cb-talent-development/cortex-exceptions) gem.
214
-
215
-
## Applications Using Cortex
216
-
217
-
*[Advice and Resources](https://github.com/cbdr/consumer-main/) - Simple Jobseeker Resources platform built atop the Consumer Web site utilizing Legacy Cortex Posts and Rails. Content will eventually be dynamically dispersed across site (result pages, description pages, etc) [Live Site](https://www.careerbuilder.com/advice)
*[CB1 Lander Shell](https://github.com/cbdr/cb1-lander-shell) - Platform for hosting lander pages and experiments, utilizing Legacy Cortex Posts and Sinatra. [Live Site](http://corporate.careerbuilder.com/)
220
-
*[CareerBuilder.com](https://github.com/cbdr/consumer-main) - The main Consumer Web site for CB.com uses Legacy Cortex Posts for the [Privacy](https://www.careerbuilder.com/privacy) and [Terms of Service](https://www.careerbuilder.com/terms) pages.
221
-
222
-
## Troubleshooting
223
-
* For OS X / homebrew users: Run `which node` to ensure node is properly linked. The path shown should match homebrew's default installation path (run `which brew` to reveal this). If its not, then run `brew link node` and follow the instructions.
12
+
Cortex CMS features a comprehensive [documentation portal](https://docs.cortexcms.org). To get started, refer to the [manual setup guide](https://docs.cortexcms.org/basics/setup/manual-setup).
224
13
225
14
## Contributing
226
15
@@ -234,6 +23,6 @@ Cortex utilizes the Apache 2.0 License. See [LICENSE](LICENSE.md) for details.
234
23
235
24
## Copyright
236
25
237
-
Copyright (c) 2018 CareerBuilder, LLC.
26
+
Copyright (c) CareerBuilder, LLC.
238
27
239
28
[cb-ce-github]: https://github.com/cb-talent-development"Content Enablement on GitHub"
0 commit comments