Skip to content
This repository has been archived by the owner on Apr 8, 2019. It is now read-only.

[Assignment #1]: Basic HTTP Server #3

Closed
wants to merge 6 commits into from

Conversation

muhammad-saleh
Copy link

No description provided.

swagger-ui.sublime-workspace
.idea
.project
node_modules/*

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need a .gitignore file at every level. The root one above is enough.

…to a better position also created an empty index.js file inside the lib folder to be able to push it

server.start(function () {
console.log('Server running at:', server.info.uri);
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super bike sheddy, but I'm a stickler for white space. You might want to add an extra line here.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay I will do it.. but may I suggest we might use EditorConfig to unify the coding style ?
The main repo should have an editorconfig file and this will be reflected to Sublime automatically when you clone or fork the repo
This will help a lot to avoid such mistakes :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Standard linting rules for Hapi can be found in Lab https://github.com/hapijs/lab/tree/master/lib/linters
Once tests are added these rules will probably be the standard

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eslint / jscs doesn't create the functionality that an .editorconfig does.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true but it does add some 'restrictions'
using both is ideal

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guys, Do I need to do anything more here or it's now fine ?
Also I want to know what to do exactly when the assignment is done, Should you close the pull request or me ?
And when exactly should I consider the assignment as done ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assignment is due 17/3 and your PR will be closed either by being merged or probably be closed by @hueniverse

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah cool thanks a lot

@muhammad-saleh muhammad-saleh changed the title Assignment One: Initial Server [Assignment $]: Initial Server Mar 13, 2015
@muhammad-saleh muhammad-saleh changed the title [Assignment $]: Initial Server [Assignment #1]: Basic HTTP Server Mar 13, 2015
swagger-ui.sublime-workspace
.idea
.project
node_modules/*

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We like to copy the same ignore file for all hapi project and keep the consistent. Worth looking at hapijs/hapi to see what's in there.

@hueniverse hueniverse modified the milestone: 0.0.1 Mar 16, 2015
…e actual repo, and in index.js fixed new line after function decalartion also added the package.json object to the internals object also handled error in server.start
else {
console.log('Server running at:', server.info.uri);
}
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a new line at the end of files

@muhammad-saleh
Copy link
Author

Closes #1

@hueniverse hueniverse closed this Mar 17, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants