- List Posts
- Edit Post
- View Post
- Create Post
- Integration of Boostrap 3
- Authentication and roles
- Login form
- Custom User model : Account
- AutoComplete Search form
- Add relation between Account and Post
- Install TinyMCE + create tinymce editor component
- Add Category model
- Create Category
- List Categories
- Choose Category when creating or editing posts
- More will be added soon
- Loopback : 3.x
- Nodejs : 6.x
- Angular : 4
- Bootstrap : 3
- JQuery : 1.12.4
- PhpStorm or WebStorm help a lot (Import, auto-complete, ...)
- But, you can use VS Code, Atom or SublimeText
- api : server part using loopback
- blog : front part using angular 4
- I used MongoDb on a Homestead Vagrant machine
- You should edit the file
api/server/datasource.json
to set your credentials :
{
"db": {
"host": "localhost",
"port": 27018,
"database": "blog",
"name": "db",
"connector": "mongodb"
}
}
- You should install first the angular cli
npm install -g @angular/cli
and loopback clinpm install -g loopback-cli
- After cloning the repository and setting the database credentials and before running the server you should first edit the file
api/server/boot/install.js
to setinstalled=false
. - Install dependencies :
$ cd api
$ npm install
$ cd ../blog
$ npm install
- Run first serve of the api to create the install data :
cd api && node .
- Then reset in
/server/boot/install.js
toinstalled=true
to avoid creation each time the server runs - Run the two parts :
cd api && node .
cd blog && ng serve
- I created in this project an Angular pipes :
keys
- I used also ReactiveFormsModule in registration form.
- To show input errors i created a component
<app-form-errors></app-form-errors>
- To show alert message i added new component
<app-flush></app-flush>
Of these serie Youtube serie that i followed