replace Hyperdev references with Gomix
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
"id": "587d7fb0367417b2b2512bed",
|
||||
"title": "Meet the Node console",
|
||||
"description": [
|
||||
"During the development process, is important to be able to check what’s going on in your code. Node is just a javascript environment. Like client side javascript, you can use the console to display useful debug information. On your local machine, you would see the console output in a terminal. On HyperDev you can open the logs in the lower part of the screen. You can toggle the log panel if you push the button ‘Logs’ (top-left, under the app name).",
|
||||
"During the development process, is important to be able to check what’s going on in your code. Node is just a javascript environment. Like client side javascript, you can use the console to display useful debug information. On your local machine, you would see the console output in a terminal. On Gomix you can open the logs in the lower part of the screen. You can toggle the log panel if you push the button ‘Logs’ (top-left, under the app name).",
|
||||
"To get started, just put the classic Hello World in the console. We recommend to keep the log panel open while working at these challenges. Reading the logs you can be aware of the nature of the errors that may occur."
|
||||
],
|
||||
"challengeSeed": [],
|
||||
@@ -58,14 +58,14 @@
|
||||
"id": "587d7fb0367417b2b2512bee",
|
||||
"title": "Start a working Express Server",
|
||||
"description": [
|
||||
"In the first two lines of the file myApp.js you can see how it’s easy to create an Express app object. This object has several methods, and we will learn many of them in these challenges. One fundamental method is app.listen(<port>). It tells your server to listen on a given port, putting it in running state. You can see it at the bottom of the file. It is inside comments because for testing reasons we need the app to be running in background. All the code that you may want to add goes between these two fundamental parts. HyperDev stores the port number in the environemet variable process.env.PORT. Its value is 3000.",
|
||||
"In the first two lines of the file myApp.js you can see how it’s easy to create an Express app object. This object has several methods, and we will learn many of them in these challenges. One fundamental method is app.listen(<port>). It tells your server to listen on a given port, putting it in running state. You can see it at the bottom of the file. It is inside comments because for testing reasons we need the app to be running in background. All the code that you may want to add goes between these two fundamental parts. Gomix stores the port number in the environemet variable process.env.PORT. Its value is 3000.",
|
||||
"Let’s serve our first string ! In Express, routes takes the following structure: app.METHOD(PATH, HANDLER). METHOD is an http method in lowercase. PATH is a relative path on the server (it can be a string, or even a regular expression). HANDLER is a function that Express calls when the route is matched.",
|
||||
"Handlers take the form function(req, res) {...}, where req is the request object, and res is the response object. For example, the handler",
|
||||
"<code>function(req, res) {</code>",
|
||||
"<code> res.send('Response String');</code>",
|
||||
"<code>}</code>",
|
||||
"will serve the string 'Response String'.",
|
||||
"Use the app.get() method to serve the string Hello Express, to GET requests matching the / root path. Be sure that your code works by looking at the logs, then see the results in your browser, clicking the button ‘Show Live’ in the HyperDev UI."
|
||||
"Use the app.get() method to serve the string Hello Express, to GET requests matching the / root path. Be sure that your code works by looking at the logs, then see the results in your browser, clicking the button ‘Show Live’ in the Gomix UI."
|
||||
],
|
||||
"challengeSeed": [],
|
||||
"tests": [
|
||||
|
@@ -40,11 +40,11 @@
|
||||
"description": [
|
||||
"The file package.json is the center of any Node.js project or npm package. It stores information about your project just like the <head>-section in a HTML document describes the content of a webpage. The package.json consists of a single JSON-object where information is stored in \"key\": value-pairs. There are only two required fields in a minimal package.json - name and version - but it’s a good practice to provide additional information about your project that could be useful to future users or maintainers.",
|
||||
"The author-field",
|
||||
"If you go to the HyperDev-project that you set up previously and look at on the left side of your screen, you’ll find the file tree where you can see an overview of the various files in your project. Under the file tree’s back-end section, you’ll find package.json - the file that we’ll be improving in the next couple of challenges.",
|
||||
"If you go to the Gomix project that you set up previously and look at on the left side of your screen, you’ll find the file tree where you can see an overview of the various files in your project. Under the file tree’s back-end section, you’ll find package.json - the file that we’ll be improving in the next couple of challenges.",
|
||||
"One of the most common pieces of information in this file is the author-field that specifies who’s the creator of a project. It can either be a string or an object with contact details. The object is recommended for bigger projects but in our case, a simple string like the following example will do.",
|
||||
"<code>\"author\": \"Jane Doe\",</code>",
|
||||
"Instructions",
|
||||
"Add your name to the author-field in the package.json of your HyperDev project.",
|
||||
"Add your name to the author-field in the package.json of your Gomix project.",
|
||||
"Remember that you’re writing JSON.",
|
||||
"All field-names must use double-quotes (\"), e.g. \"author\"",
|
||||
"All fields must be separated with a comma (,)"
|
||||
@@ -71,7 +71,7 @@
|
||||
"Regardless of what you plan for your project, a description is definitely recommended. Let’s add something similar to this:",
|
||||
"<code>\"description\": \"A project that does something awesome\",</code>",
|
||||
"Instructions",
|
||||
"Add a description to the package.json in your HyperDev project.",
|
||||
"Add a description to the package.json in your Gomix project.",
|
||||
"Remember to use double-quotes for field-names (\") and commas (,) to separate fields."
|
||||
],
|
||||
"challengeSeed": [],
|
||||
@@ -96,7 +96,7 @@
|
||||
"<code>\"keywords\": [ \"descriptive\", \"related\", \"words\" ],</code>",
|
||||
"As you can see, this field is structured as an array of double-quoted strings.",
|
||||
"Instructions",
|
||||
"Add an array of suitable strings to the keywords-field in the package.json of your HyperDev project.",
|
||||
"Add an array of suitable strings to the keywords-field in the package.json of your Gomix project.",
|
||||
"One of the keywords should be freecodecamp."
|
||||
],
|
||||
"challengeSeed": [],
|
||||
@@ -131,7 +131,7 @@
|
||||
"Example",
|
||||
"<code>\"license\": \"MIT\",</code>",
|
||||
"Instructions",
|
||||
"Fill the license-field in the package.json of your HyperDev project as you find suitable."
|
||||
"Fill the license-field in the package.json of your Gomix project as you find suitable."
|
||||
],
|
||||
"challengeSeed": [],
|
||||
"tests": [
|
||||
@@ -154,7 +154,7 @@
|
||||
"Example",
|
||||
"<code>\"version\": \"1.2\",</code>",
|
||||
"Instructions",
|
||||
"Add a version to the package.json in your HyperDev project."
|
||||
"Add a version to the package.json in your Gomix project."
|
||||
],
|
||||
"challengeSeed": [],
|
||||
"tests": [
|
||||
|
@@ -74,7 +74,7 @@
|
||||
"more fields, use simple validators like required or unique,",
|
||||
"and set default values. See the <a href='http://mongoosejs.com/docs/guide.html'>mongoose docs</a>.",
|
||||
"[C]RUD Part I - CREATE",
|
||||
"Note: HyperDev is a real server, and in real servers the interactions with the db happen in handler functions. These function are executed when some event happens (e.g. someone hits an endpoint on your API). We’ll follow the same approach in these exercises. The done() function is a callback that tells us that we can proceed after completing an asynchronous operation such as inserting, searching, updating or deleting. It’s following the Node convention and should be called as done(null, data) on success, or done(err) on error.",
|
||||
"Note: Gomix is a real server, and in real servers the interactions with the db happen in handler functions. These function are executed when some event happens (e.g. someone hits an endpoint on your API). We’ll follow the same approach in these exercises. The done() function is a callback that tells us that we can proceed after completing an asynchronous operation such as inserting, searching, updating or deleting. It’s following the Node convention and should be called as done(null, data) on success, or done(err) on error.",
|
||||
"Warning - When interacting with remote services, errors may occur !",
|
||||
"<code>/* Example */</code>",
|
||||
"<code>var someFunc = function(done) {</code>",
|
||||
|
Reference in New Issue
Block a user