Loading...
'; echo ''; } ?>
Leave feedback 1/4
Please leave feedback here to help us make this site better; you can choose to be anonymous.
We look over the feedback to know how we can improve the site and get what users want.
 
Do you want to be anonymous when leaving feedback?
Check for Yes
Next
Leave feedback 2/4
What is your overall impression of the layout?
Terrible AWESOME!!!
 
How easy is it to navigate the site?
Extremely easy How do I get out of here?
Next
Leave feedback 3/4
What is your overall impression of the functionality?
You call that functionality? Excellent!
 
How easy was it to understand what the site is about?
I still have no clue. I knew it before I came here!
Next
Leave feedback 4/4
Leave comments or suggestions here.
Send
Something went wrong; please check that you have marked all questions.
Start Forum Posts Leaderboard More















Mutation

Logged Out
Leaderboard coming soon

Engineering Solutions for the Church

Christian Engineering Solutions (CES) is a Not for Profit Organization specializing in collaborative solutions development for the Church. In the Spirit of Jesus Christ, we are to spread the gospel throughout the Earth, taking care to be good examples of Christ Jesus by serving others. CES is designed to help the Church meet these goals in the most rigorous manner possible.

Our Technology

Our Technology is scripture based in its goals and foundations. Open-Source and Free, one may use our services to both learn and solve problems with the goals of helping others and growing closer to God.

Features

Merit-based Reputation and Rewards

Streamlined Search and Citations

Modular Applications

Peer-to-Peer and Encryption Technologies (Under Development)

External Repository

https://github.com/ChristianEngineeringSolutions/ChristianEngineeringSolutions


Setup Account with email to earn rewards from reputation and donations.
Projects/Source Code
models/

ADMIN
One Way , 8/8/2024
   Project in Projects/Source Code
0 Stars  
ADMIN
One Way , 8/8/2024
   Project in Projects/Source Code/models/
'use strict';
const mongoose = require('mongoose');
const mongoosePaginate = require('mongoose-paginate');

const bookmarkSchema = mongoose.Schema({
    //who is the bookmark for?
    user: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'User'
    },
    passage: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'Passage'
    },
    created: {type: Date, default: Date.now},
});

bookmarkSchema.plugin(mongoosePaginate);

module.exports = mongoose.model('Bookmark', bookmarkSchema, 'Bookmarks');

0 Stars  
ADMIN
One Way , 8/8/2024
   Project in Projects/Source Code/models/
'use strict';
const mongoose = require('mongoose');
const mongoosePaginate = require('mongoose-paginate');

const categorySchema = mongoose.Schema({
    //who is the category for?
    tracker: Number,
    name: String,
});

categorySchema.plugin(mongoosePaginate);

module.exports = mongoose.model('Category', categorySchema, 'Categories');

0 Stars  
ADMIN
One Way , 8/8/2024
   Project in Projects/Source Code/models/
'use strict';
const mongoose = require('mongoose');
const mongoosePaginate = require('mongoose-paginate');
const { v4 } = require('uuid');

const interactionSchema = mongoose.Schema({
    //author of the daemon
    keeper: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'User'
    },
    //interactor
    user: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'User'
    },
    passage: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'Passage'
    },
    //for help with search /etc
    control: {
        type: Number,
        default: 0
    },
    content: String

});

module.exports = mongoose.model('Interaction', interactionSchema, 'Interactions');

0 Stars  
ADMIN
One Way , 8/8/2024
   Project in Projects/Source Code/models/
'use strict';
const mongoose = require('mongoose');
const mongoosePaginate = require('mongoose-paginate');

const messageSchema = mongoose.Schema({
    //who is the message for?
    to: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'User'
    },
    from: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'User'
    },
    passage: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'Passage'
    },
    title: String,
    stars: {
        type: Number,
        default: 0
    }
});

messageSchema.plugin(mongoosePaginate);

module.exports = mongoose.model('Message', messageSchema, 'Messages');

0 Stars  
ADMIN
One Way , 8/8/2024
   Project in Projects/Source Code/models/
'use strict';
const mongoose = require('mongoose');
const mongoosePaginate = require('mongoose-paginate');

const notificationSchema = mongoose.Schema({
    //who is the notification for?
    user: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'User'
    },
    content: String,
    //date of creation
    date: {type: Date, default: Date.now},
    type: String
});

notificationSchema.plugin(mongoosePaginate);

module.exports = mongoose.model('Notification', notificationSchema, 'Notifications');

0 Stars  
ADMIN
One Way , 8/8/2024
   Project in Projects/Source Code/models/
'use strict';
const mongoose = require('mongoose');
const mongoosePaginate = require('mongoose-paginate');
const { v4 } = require('uuid');

const passageSchema = mongoose.Schema({
    author: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'User'
    },
    //author is first user
    users: [{
        type: mongoose.Schema.Types.ObjectId,
        ref: 'User'
    }],
    interactions: [{
        type: mongoose.Schema.Types.ObjectId,
        ref: 'Interaction'
    }],
    uuid: {
        type: String,
        default: () => v4()
    },
    title: {
        type: String,
        default: ''
        // index: true
    },
    forumSpecial: {
        type: Boolean,
        default: false
    },
    //to help user apps (store JSON)
    metadata: String,
    html: {
        type: String,
        default: ''
    },
    css: {
        type: String,
        default: ''
    },
    javascript: {
        type: String,
        default: ''
    },
    libs: {
        type: String,
        default: ``
    }, //included libs for JS, for starting synthetic passages
    //for daemons:
    param: String,
    //to replace html/css/javascript
    code: {
        type: String,
        default: ''
        // index: true
    },
    bibliography: String,
    //can be enabled by default in passage settings
    distraction_free: {
        type: Boolean,
        default: false
    },
    flagged: {
        type: Boolean,
        default: false
    },
    //bubble up content/code? Passage setting option
    bubbling: {
        type: Boolean,
        default: false
    },
    lang: {
        type: String,
        default: 'rich'
    },
    fileStreamPath: {
        type: String,
        default: null,
    },
    //there can only be one mainFile for each fileStreamPath
    mainFile: {
        type: Boolean,
        default: false
    },
    // tags: [{
    //     type: mongoose.Schema.Types.ObjectId,
    //     ref: 'Tag'
    // }],
    tags: String, //["tag1", "tag2", "tag3", ...]
    /**
     * {
     *  "tag1": {
     *          reputation: Number //from user reputation on bump
     *      }
     * }
     */
    /** tags.join('') => Regex $search */
    // From original to previous passage source
    sourceList : [{
        type: mongoose.Schema.Types.ObjectId,
        ref: 'Passage'
    }],
    //Send them to the server with the sources if they are external
    sourceLink: String,
    //for keeping track of contributors peer to peer or from local pushes
    collaborators: {
        type: [String],
        default: []
    },
    content: {
        type: String,
        default: ''
        // index: true
    },
    //forces content to be a unique value unless null
    // content: {
    //     type: String,
    //     index: {
    //         unique: true,
    //         partialFilterExpression: {content: {$type: "string"}}
    //     }
    // },
    //chapter the passage belongs to
    // chapter: {
    //     type: mongoose.Schema.Types.ObjectId,
    //     ref: 'Chapter'
    // },
    //parent passage the passage belongs to
    parent: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'Passage'
    },
    // sub passages under this passage
    passages: [{
        type: mongoose.Schema.Types.ObjectId,
        ref: 'Passage'
    }],
    subforums: [{
        type: mongoose.Schema.Types.ObjectId,
        ref: 'Passage'
    }],
    // daemons to be used as functions in passage
    daemons: [{
        type: mongoose.Schema.Types.ObjectId,
        ref: 'Passage'
    }],
    // 
    input: [{
        type: mongoose.Schema.Types.ObjectId,
        ref: 'Passage'
    }],
    output: String,
    //result of evaluating the output
    final: String,
    //date of creation
    date: {type: Date, default: Date.now},
    parentTracker: Number, //For Forum,
    tracker: Number,
    forumType: String, //category, subcat, subforum
    sub: {
        type: Boolean,
        default: false
    }, //subforum or not
    //date last updated
    updated: {type: Date, default: Date.now},
    stars: {
        type: Number,
        default: 0
    },
    crossOriginAllowed: {
        type: Boolean,
        default: false
    },
    admin: {
        type: Boolean,
        default: false
    }, //content warning
    filename: [String], // associated file
    filenames: [String], //If we go with file upload multiple
    thumbnail: String, //For models, vids, etc.
    mimeType: [String],
    deleted: {
        type: Boolean,
        default: false
    },
    //permissions/settings
    public: {
        type: Boolean,
        default: false
    },
    forum: {
        type: Boolean,
        default: false
    },
    // Only author/users can even view
    personal: {
        type: Boolean,
        default: false
    },
    // allow same origin iframes
    personal_cross_origin: {
        type: Boolean,
        default: false
    },
    //Made by the AI?
    synthetic: {
        type: Boolean,
        default: false
    },
    //0 is false, 1 is requesting, 2 is active
    public_daemon: {
        type: Number,
        default: 0
    },
    admin_make_daemon: {
        type: Boolean,
        default: false
    },
    // Makes it a daemon for all users by default
    default_daemon: {
        type: Boolean,
        default: false
    },
    isSVG: {
        type: Boolean,
        default: false
    },
    license: String,
    isPorn: {
        type: [Number],
        default: [0]
    },
    isHentai: {
        type: [Number],
        default: [0]
    },
    toggle: {
        type: Boolean,
        default: false
    },
    mirror: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'Passage'
    },
    bestOf: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'Passage'
    },
    mirrorContent: {
        type: Boolean,
        default: false
    },
    bestOfContent: {
        type: Boolean,
        default: false
    },
    mirrorEntire: {
        type: Boolean,
        default: false
    },
    bestOfEntire: {
        type: Boolean,
        default: false
    }

});
var autoPopulateChildren = function(next) {
    this.populate('passages');
    this.populate('author');
    // this.populate('parent');
    next();
};
// passageSchema.index({
//     title: "text",
//     content: "text",
//     code: "text"
// });
passageSchema
.pre('findOne', autoPopulateChildren)
.pre('find', autoPopulateChildren)
passageSchema.plugin(mongoosePaginate);

module.exports = mongoose.model('Passage', passageSchema, 'Passages');

0 Stars  
ADMIN
One Way , 8/8/2024
   Project in Projects/Source Code/models/
'use strict';
const mongoose = require('mongoose');
const bcrypt = require('bcrypt');

const rexSchema = mongoose.Schema({

});
module.exports = mongoose.model('Rex', rexSchema, 'Rex');

0 Stars  
ADMIN
One Way , 8/8/2024
   Project in Projects/Source Code/models/
'use strict';
const mongoose = require('mongoose');
const mongoosePaginate = require('mongoose-paginate');

const subcatSchema = mongoose.Schema({
    //who is the subcat for?
    tracker: Number,
    name: String,
    parentTracker: Number,
    desc: String
});

subcatSchema.plugin(mongoosePaginate);

module.exports = mongoose.model('Subcat', subcatSchema, 'Subcategories');

0 Stars  
ADMIN
One Way , 8/8/2024
   Project in Projects/Source Code/models/
'use strict';
const mongoose = require('mongoose');
const mongoosePaginate = require('mongoose-paginate');

const subforumSchema = mongoose.Schema({
    //who is the subforum for?
    parentTracker: Number,
    tracker: Number,
    name: String,
});

subforumSchema.plugin(mongoosePaginate);

module.exports = mongoose.model('Subforum', subforumSchema, 'Subforums');

0 Stars  
ADMIN
One Way , 8/8/2024
   Project in Projects/Source Code/models/
'use strict';
const mongoose = require('mongoose');
const mongoosePaginate = require('mongoose-paginate');
const bcrypt = require('bcrypt');

const userSchema = mongoose.Schema({
    joined: {type: Date, default: Date.now},
    age: {
      type: Number,
      default: 0
    },
    safeMode: {
      type: Boolean,
      default: true
    },
    email: {
        type: String,
        // unique: true,
        required: false,
        trim: true
      },
      username: {
        type: String,
        unique: true,
        required: true,
        trim: true
      },
      password: {
        type: String,
        required: true,
      },
    name: String,
    thumbnail: String,
    about: String,
    developer: {
      type: Boolean,
      default: false
    },
    admin: {
      type: Boolean,
      default: false
    },
    verified: {
      type: Boolean,
      default: false
    },
    developerMode: {
      type: Boolean,
      default: false
    },
    stars: {
        type: Number,
        default: 100
    },
    starsGiven: {
        type: Number,
        default: 0
    },
    token: String,
    deleted: {
        type: Boolean,
        default: false
    },
    subscribed: {
      type: Boolean,
      default: false
    },
    bookmarks: [{
      type: mongoose.Schema.Types.ObjectId,
      ref: 'Passage'
    }],
    // Background scripts
    daemons: [{
      type: mongoose.Schema.Types.ObjectId,
      ref: 'Passage'
    }],
    tabs: [{
      type: mongoose.Schema.Types.ObjectId,
      ref: 'Passage'
    }],
    stripeAccountId: {
      type: String,
      default: null
    },
    subscriptionID: {
      type: String,
      default: null
    },
    lastSubscribed: {type: Date, default: null},
    room: {
      type: String,
      default: 'root'
    }, //handle sockets by passage
    stripeOnboardingComplete: {
      type: Boolean,
      default: false
    },
    recoveryToken: String,
    recoveryExp: Date

});
userSchema.plugin(mongoosePaginate);
module.exports = mongoose.model('User', userSchema, 'Users');

0 Stars  
ADMIN
One Way , 8/8/2024
   Project in Projects/Source Code/models/
'use strict';
const mongoose = require('mongoose');
const visitorSchema = mongoose.Schema({
  ipAddress: String,
  visitedAt: { type: Date, default: Date.now },
  user: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'User'
    },
  visited: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'Passage'
    },
});
module.exports = mongoose.model('Visitor', visitorSchema, 'Visitors');

0 Stars