Skip to content

Commit da902d5

Browse files
committed
v0.2.3 - Release notes, readme, package, cleanup
1 parent dff593a commit da902d5

File tree

7 files changed

+33
-11
lines changed

7 files changed

+33
-11
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Perfectionist generator that scaffolds out different types of Frontend applicati
2020
- **Simple Web App** — Sometimes you just need a gulp server(localhost), scss compiler & browser-sync(live reload). Well that's exactly what this app is for.
2121
- **Full Pack Web App** - Thinking of creating a solid frontend base with proper structure, well optimization; choose this applicaton type which comes with power features.
2222
- **Angular App** - Angular app with basic configurations and quick commands for creating controllers, directives, services and filters. More to come!
23+
- **Restify App** - API developer? Want to create REST API services with mongodb, This app type got your back which scaffolds basic files like models, controller, routes, db & config.
2324

2425
# Getting Started
2526

@@ -167,6 +168,24 @@ Your directory structure will look like this
167168
└── .gitignore
168169
````````
169170
171+
**Restify App**
172+
173+
````````
174+
├── controllers
175+
│ └── userController.js
176+
├── models
177+
│ └── userSchema.js
178+
├── route.js
179+
├── app.js
180+
├── config.json
181+
├── db.js
182+
├── node_modules
183+
├── package.json
184+
├── gulpfile.js
185+
├── .gitattributes
186+
└── .gitignore
187+
````````
188+
170189
# Quick commands
171190
172191
Terminal commands to speed up repetitive tasks you do in projects. Simple app idea is to maintain as minimal as possible; so quick commands won't work.
@@ -257,5 +276,5 @@ Contribution would be of great help to create a solid generator for frontend pro
257276
258277
**Active Contributers**
259278
260-
[![Logesh Paul](https://avatars3.githubusercontent.com/u/41541?v=3&s=72)](http:/www.github.com/logeshpaul) [![Gokulakrishnan](https://avatars0.githubusercontent.com/u/2944237?v=3&s=72)](https://github.com/gokulkrishh) [![Ritesh Babu](https://avatars3.githubusercontent.com/u/736660?v=3&s=72)](https://github.com/riteshbabu) [![Sugan Krishnan](https://avatars1.githubusercontent.com/u/680120?v=3&s=72)](https://github.com/rgksugan)
279+
[![Logesh Paul](https://avatars3.githubusercontent.com/u/41541?v=3&s=72)](http:/www.github.com/logeshpaul) [![Gokulakrishnan](https://avatars0.githubusercontent.com/u/2944237?v=3&s=72)](https://github.com/gokulkrishh) [![Thiyagarajan](https://avatars2.githubusercontent.com/u/9147343?v=3&s=72)](https://github.com/ThiyagarajanJ) [![Ritesh Babu](https://avatars3.githubusercontent.com/u/736660?v=3&s=72)](https://github.com/riteshbabu) [![Sugan Krishnan](https://avatars1.githubusercontent.com/u/680120?v=3&s=72)](https://github.com/rgksugan)
261280

app/templates/_typeRestifyApp/_app.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ app.use(restify.queryParser());
88

99
app.listen(config.port, function() {
1010
console.log('server listening on port number', config.port);
11-
1211
});
1312
var routes = require('./routes')(app);
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module.exports = function(app) {
2-
var user = require('./controllers/userController');
3-
2+
var user = require('./controllers/userController');
3+
44
app.get('/', function(req, res, next) {
55
return res.send("WELCOME TO REST API");
66
});
77

8-
app.post('/createUser', user.createUser);
8+
app.post('/createUser', user.createUser);
99
};

app/templates/_typeRestifyApp/_userController.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
function userController () {
44
var User = require('../models/userSchema');
5-
5+
66
// Creating New User
77
this.createUser = function (req, res, next) {
88
var name = req.params.name;
99
var email = req.params.email;
1010
var age = req.params.age;
1111
var city = req.params.city;
12-
12+
1313
User.create({name:name,email:email,age:age,city:city}, function(err, result) {
1414
if (err) {
1515
console.log(err);
16-
return res.send({'error':err});
16+
return res.send({'error':err});
1717
}
1818
else {
1919
return res.send({'result':result,'status':'successfully saved'});

app/templates/_typeRestifyApp/_userSchema.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Model for the Student
1+
// Model for the Student
22
module.exports = (function userSchema () {
33

44
var mongoose = require('../db').mongoose;
@@ -12,6 +12,6 @@ module.exports = (function userSchema () {
1212
var collectionName = 'user';
1313
var userSchema = mongoose.Schema(schema);
1414
var User = mongoose.model(collectionName, userSchema);
15-
15+
1616
return User;
1717
})();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "generator-smacss",
3-
"version": "0.2.2",
3+
"version": "0.2.3",
44
"description": "Perfectionist Frontend Generator",
55
"author": {
66
"name": "Logesh Paul",

release.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release History
22

3+
**v0.2.3**
4+
- New App Type - Restify! With generator-smacss you can create restify apps.
5+
- Code cleanup and improvements.
6+
37
**v0.2.2**
48

59
- Bower Components - Auto check dependencies and concat in right order

0 commit comments

Comments
 (0)