Profile Pension Website
The source code for re-platforming the www.profilefinancial.co.uk website
[Keystone]version 4.0.0-beta.5 (http://keystonejs.com/) - Node.js CMS & Web Application Platform
This Project is generally following the guidelines set out in AirBnB's Javascript Style Guide, with the exception of using real tabs for indentation.
Default login data: 'email': 'hello@profilepensions.co.uk', 'password': 'profilepensions' The app need content in order work . if there is no Content por a page it will return an error or an empty page Please set in /keystone.js keystone.set('google api key', 'browser-key'); keystone.set('google server api key', 'server-key'); to get the google maps on contact page https://your-url/FileAPITest.html you can upload files to server . folder public > uploads >images http://your-url/uploads/files/your-file.ext
1 Install & start MongoDb https://www.mongodb.com/ 2 Install & start Node https://nodejs.org/en/
-- download this project -- add the database to mongoDB Once you've set up it up, run $ npm start or $ node keystone to start the server.
-- download this project Once you've set up your configuration with $ npm install and run $ npm start or $ node keystone to start the server.
See more about keystonejs at http://keystonejs.com/getting-started/
Once you've set up your configuration with $ npm install, run $ node keystone to start the server.
Date | Time | Notes |
---|---|---|
08/08/2017 | 10.02 | move to node 8 |
In order to get the project working you have to go http://localhost:3000/keystone/ or http://profilepension.co.uk/keystone/
log in and add data into types form [types = (post , index, videos , page-.... , contact) ] in order to get the app working or get data into database
var target = 'input.EditForm__key-or-id__input';
// get content type from the admin ui
var segment = document.location.href.split('/')[4];
// map admin keys with front UI
var map = {
'posts': 'content-hub/post',
'team-members': 'meet-the-team',
'pensions': 'pension-type',
'whatyouneedfromadmin': 'whatismatchinginurl- route matching'
};
function addLink() {
var slug = $(target).val()
if(!slug) return setTimeout(addLink, 1000)
$(target).after('<a title="Preview" href="/' + map[segment] + '/' + slug + '" target="_blank">' + slug + ' (preview)</a>')
$(target).remove()
}
addLink()
var postSearch = {
slug: locals.filters.post,
state: 'published',
};
// allow admin user to see the post in all cases
if (locals.user && locals.user.isAdmin) {
delete postSearch.state;
}
- Profile Pensions - Organisation - ProfilePensions See also the list of contributors who participated in this project.