Git Product home page Git Product logo

baasic-starterkit-angular-blog's Introduction

Baasic Angular Blog Starter Kit

Starter Kit Functionality

This Starter Kit provides a bare-bones blog engine. Initially, it shows a list of blog posts, with search, tags, and login modules contained within a panel on the right side. To keep things simple, it allows you to add/edit/delete blog posts using the markdown syntax and add tags to posts. We deliberately removed more advanced features so the basic functionality is not obscured by them: however, future samples will include a complete content management functionality.

This Kit is based on the Baasic article data type. Articles provide a standard way to gather written work for the purpose of publishing various documents, news, posts and other similar items. Each article has a set of properties that can be edited interactively to change their appearance and behavior. We can distinguish following article types:

  • Published article - a publicly available article,
  • Article pending publication - an article that is waiting on publication until the predetermined Publication date,
  • Draft article - an unfinished article saved to the Baasic data storage and
  • Archived article - an older article separated in the archived data storage for potential future use.

More information about the Starter Kit can be found in the series of blog posts here.

Working with the Starter kit

As a client-side prerequisite, you should install the basic tools for your operating system: Node.js (4.x and above), Bower and Gulp. Start by cloning the Angular blog Starter Kit repository. After that, go into the root folder of the started Kit you just cloned and type

npm install

npm (Node Package Manager) will go through its configuration file (package.json) and install all dependencies. It may take a couple of minutes to download and install everything; when it is finished, just type

npm start

and you are almost ready to go.

In its default state, this Kit points to the main demo site and pulls its content from it. As it would not be a nice thing to have thousands of users editing it, you will need to point your Kit to your own application. It is easy - just go to the *\src\app\app.module.ts and enter your Baasic application unique identifier (API Key) here:

baasicApp.forRoot('your-unique-identifier', {
        apiRootUrl: 'api.baasic.com',
        apiVersion: 'v1'
    });

As your application may be empty and there is no articles in it, and the demo page will be blank after this switch. However, you can now log in and start entering your own content.

Production ready build

To make the app ready for deploy to production run:

npm run build:prod

Base url option

You can also add a --baseUrl command if your blog destination is not in root of your website

For example: --baseUrl "/angular/starterkit-blog-themes/events-minimal/"

Now there's a ./dist folder with all scripts and stylesheets concatenated and minified, also third party libraries installed with bower will be concatenated and minified into vendors.min.js and vendors.min.css respectively.

Get in touch

Get in touch using one of the community channels

Credits

Lorem Ipsums:

baasic-starterkit-angular-blog's People

Contributors

dkolarev avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

baasic-starterkit-angular-blog's Issues

Issue with Angular 4 CLI and Baasic Angular SDK

Hi there,

I'm having issues with using Angular 4 CLI for creating an Angular 4 application with your Baasic Angular SDK.

Short Summary:
When adding BaasicApp.forRoot('vehiclesdatastorage') inside app.module.ts file, a compiler error is returned

Steps to reproduce:

  1. Install Angular 4 CLI, and launch a new test project:
npm install -g @angular/cli
ng new PROJECT-NAME
cd PROJECT-NAME
  1. Install and add Baasic Angular SDK to your project
npm i baasic-sdk-angular

Follow steps inside: https://www.npmjs.com/package/baasic-sdk-angular

3. Run the project

ng serve

Environment
OSX 10.12.5
node 8.1.2
npm 5.3.0

Possible issues
Angular Ahead Of Time compiler is missing a manifest.json file in the imported package.

screen shot 2017-10-04 at 11 08 01

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.