(Contributed and forked from "git://github.com/rgolea/angular-deployd-admin.git")
<script async src="//embedr.flickr.com/assets/client-code.js" charset="utf-8"></script>
- NodeJs
- Deployd Framework (www.deployd.com)
- AngularJs (1.5+)
- Angular Material Design (UI)
- MongoDB
You can also build with the given 'DockerFile' to create an image and run with a mongodb link.
Docker image : coming soon on Docker hub.
copy and paste below git command in your terminal window:
git clone https://github.com/moorthi07/MarsCMS.git
This will download the all the code from this repository to a folder 'MarsCMS'
Then 'CD' into 'MarsCMS' Directory
Make sure you have Node.js installed. MongoDB - community version installed. [Git terminal tool] (https://git-scm.com/) installed.
*** Make sure you are in elevated administrator permission. (Some packages will through error if you don't have right permission.)
-- In Mac / Linux : In terminal use 'sudo root' to change user to admin
-- In Windows : Right click on 'command prompt' in menu and select 'Run as administrator'
Step 1. (Pre - Requisite) - Install Grunt and Bower
Open your terminal/command window and install Grunt by pasting this code:
npm install -g grunt-cli
Also install Bower.
npm install -g bower
Step 2. - Install dependencies
Go to the project folder in your terminal window and use the following command to install the NPM dependencies.
npm install
Now install your Bower dependencies by using
bower install
Step 3. - Execute Grunt and Grunt watch
In order to make the app work execute Grunt to minify and concatenate the javascript
files and the css
files.
grunt
Use Grunt watch to be able to deploy the modified files automatically by running the Watch section of the .grunt file. You can do that by using:
grunt watch
If you have not created any mongodb database, Mars CMS will automatically create 'MarsCMSDB' database in mongodb. If you like to use different database , change the following code in 'app.js' in the root folder (not in the /public folder *)
db: { connectionString: 'mongodb://localhost:27017/MarsCMSDB' }
First start and run the,
MongoDB:
mongod
Next start the deployd web server,
For Application in production:
npm start
For Application in development:
npm run dev
You can run the app by starting mongodb and the entire app. After that, open your browser and go to http://localhost:2403/dashboard. Go to the users collection and add an admin user. (Fillin Users first and last name and select admin column check box to make the user as 'ADMIN')
For quick testing Use 'Postman' Developer tool available as a Chrome browser Add-on. You can find it here: Then Follow this steps:
- Install Postman on Chrome browser
- Left side go to collections and import 'test collections' json file from
" test\postman_tests\'
folder - Select any request and Onthe Right side change the Json data as your need.
Note: YOU HAVE TO FIRST RUN 'LOGIN' -request in order to make other tests work.
- Deployd admin Dashboard: URL: This is an interface for your Resources (Collections, Models, config), Events Code (Get, Post,Delete, put, before and after commit etc.) and Data
http://localhost:2403/dashboard
2. Public website : URL: http://localhost:2403
3. Website admin site (cms to update the public pages / add users / polls, etc.) - in the public website click on 'login' to open the cms admin site.
-
To change the first page (website look and content), login (step 3) to the Website admin site
-
then click on the menu button to open the side navigation menu
-
in the menu select 'Settings' -here you should set up your application title, app name, theme, etc.
-
you can create more users with different permission levels
We are working on to make it best. Post your comments here.
You will have to change the 'BASEURL' const field in
public/app.js
To contribute fork this repository and make changes, initiate a pull request. Help with adding more tests and features
Also post your issues on issues section.