├── .gitignore ├── LICENSE ├── README.md ├── assets ├── fonts │ ├── Montserrat-Bold.ttf │ ├── Montserrat-Regular.ttf │ ├── Pacifico.ttf │ ├── fontello.eot │ ├── fontello.svg │ ├── fontello.ttf │ └── fontello.woff ├── index.html ├── javascripts │ ├── controllers │ │ ├── all_tests.coffee │ │ ├── edit_test.coffee │ │ ├── new_test.coffee │ │ └── start_test.coffee │ ├── index.coffee │ └── modules │ │ ├── app.coffee │ │ └── app.controllers.coffee ├── stylesheets │ ├── animations.styl │ ├── colors.styl │ ├── elements.styl │ ├── fonts.styl │ ├── icons.styl │ └── main.styl └── views │ ├── all_tests.html │ ├── home.html │ ├── new_test.html │ └── start_test.html ├── gopherling.go ├── gulpfile.coffee ├── loader └── loader.go ├── models └── models.go ├── package.json └── static ├── fonts ├── Montserrat-Bold.ttf ├── Montserrat-Regular.ttf ├── Pacifico.ttf ├── fontello.eot ├── fontello.svg ├── fontello.ttf └── fontello.woff ├── index.html ├── javascripts └── app.js ├── stylesheets ├── animations.css ├── colors.css ├── elements.css ├── fonts.css ├── icons.css └── main.css └── views ├── all_tests.html ├── copy of start_test.html ├── home.html ├── new_test.html └── start_test.html /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | 26 | # Logs 27 | logs 28 | *.log 29 | 30 | # Runtime data 31 | pids 32 | *.pid 33 | *.seed 34 | 35 | # Dependency directory 36 | # Commenting this out is preferred by some people, see 37 | # https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- 38 | node_modules 39 | 40 | # Users Environment Variables 41 | .lock-wscript 42 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | {one line to give the program's name and a brief idea of what it does.} 635 | Copyright (C) {year} {name of author} 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | {project} Copyright (C) {year} {fullname} 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | 676 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Gopherling 2 | ========= 3 | 4 | Gopherling is a stress/load testing webapp similar to ab for the gophergala 2015. 5 | 6 | Prerequisites 7 | -------------- 8 | 9 | - Go 10 | - mongoDB 11 | - node env (if you want to edit the js or css) 12 | 13 | Installation 14 | -------------- 15 | 16 | ```sh 17 | $ cd $GOTPATH 18 | $ mkdir -p src/github.com/gophergala 19 | $ cd src/github.com/gophergala 20 | $ git clone https://github.com/gophergala/gopherling.git 21 | $ cd gopherling 22 | $ go get ./... 23 | ``` 24 | 25 | Starting the server 26 | -------------- 27 | 28 | ```sh 29 | $ cd $GOPATH/src/github.com/gophergala/gopherling 30 | $ go install && gopherling --dbHost=127.0.0.1 --dbPort=27017 31 | ``` 32 | 33 | Using the app 34 | -------------- 35 | 36 | All you have to do is open this url on your browser `http://127.0.0.1:9410` 37 | 38 | License 39 | ---- 40 | 41 | Gopherling is under the GNU GPL v3.0 license. 42 | 43 | Made by Frostwind 44 | -------------------------------------------------------------------------------- /assets/fonts/Montserrat-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gophergala/gopherling/5593073cc7c2eff74b047c15044b6b8009628d7c/assets/fonts/Montserrat-Bold.ttf -------------------------------------------------------------------------------- /assets/fonts/Montserrat-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gophergala/gopherling/5593073cc7c2eff74b047c15044b6b8009628d7c/assets/fonts/Montserrat-Regular.ttf -------------------------------------------------------------------------------- /assets/fonts/Pacifico.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gophergala/gopherling/5593073cc7c2eff74b047c15044b6b8009628d7c/assets/fonts/Pacifico.ttf -------------------------------------------------------------------------------- /assets/fonts/fontello.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gophergala/gopherling/5593073cc7c2eff74b047c15044b6b8009628d7c/assets/fonts/fontello.eot -------------------------------------------------------------------------------- /assets/fonts/fontello.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Copyright (C) 2015 by original authors @ fontello.com 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /assets/fonts/fontello.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gophergala/gopherling/5593073cc7c2eff74b047c15044b6b8009628d7c/assets/fonts/fontello.ttf -------------------------------------------------------------------------------- /assets/fonts/fontello.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gophergala/gopherling/5593073cc7c2eff74b047c15044b6b8009628d7c/assets/fonts/fontello.woff -------------------------------------------------------------------------------- /assets/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Gopherling 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 |
23 |

24 | Gopherling 25 |

26 | 27 | 37 |
38 |
39 | 40 |
41 |
42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /assets/javascripts/controllers/all_tests.coffee: -------------------------------------------------------------------------------- 1 | _ = require 'underscore' 2 | 3 | module.exports = class 4 | @$inject: ['$scope', '$http', '$routeParams', '$location', '$websocket'] 5 | constructor: (@scope, @http, @params, @location, @socket) -> 6 | @scope.tests = [] 7 | 8 | @http.get '/api/tests' 9 | .success (res) => 10 | @scope.tests = res 11 | 12 | angular.extend @scope, 13 | delete: @delete 14 | 15 | delete: (id) => 16 | @http.delete '/api/tests/'+id 17 | .success (res) => 18 | @scope.tests = _(@scope.tests).reject (test) -> 19 | id is test._id 20 | -------------------------------------------------------------------------------- /assets/javascripts/controllers/edit_test.coffee: -------------------------------------------------------------------------------- 1 | _ = require 'underscore' 2 | 3 | module.exports = class 4 | @$inject: ['$scope', '$http', '$location'] 5 | constructor: (@scope, @http, @location) -> 6 | @scope.test = 7 | name: '' 8 | description: '' 9 | baseUrl: '' 10 | requests: 0 11 | concurrency: 0 12 | tasks: [] 13 | 14 | @addTask() 15 | 16 | angular.extend @scope, 17 | save: @save 18 | addTask: @addTask 19 | removeTask: @removeTask 20 | addHeader: @addHeader 21 | removeHeader: @removeHeader 22 | 23 | addTask: () => 24 | @scope.test.tasks.push 25 | method: 'GET' 26 | path: '' 27 | headers: [] 28 | rawBody: '' 29 | 30 | removeTask: (task) => 31 | @scope.test.tasks = _(@scope.test.tasks).reject (t) -> 32 | t is task 33 | 34 | addHeader: (task) => 35 | task.headers.push 36 | field: '' 37 | value: '' 38 | 39 | removeHeader: (task, header) => 40 | task.headers = _(task.headers).reject (h) -> 41 | h is header 42 | 43 | save: (run = false) => 44 | console.log @scope.test 45 | @http.post '/api/tests', @scope.test 46 | .success (res) => 47 | if run is true 48 | @location.path '/tests/'+res._id 49 | else 50 | @location.path '/tests' 51 | console.debug 'Your test has been saved' 52 | .error (err) => 53 | console.debug 'An error occured' 54 | -------------------------------------------------------------------------------- /assets/javascripts/controllers/new_test.coffee: -------------------------------------------------------------------------------- 1 | _ = require 'underscore' 2 | 3 | module.exports = class 4 | @$inject: ['$scope', '$http', '$location', '$routeParams'] 5 | constructor: (@scope, @http, @location, @params) -> 6 | @scope.test = 7 | name: '' 8 | description: '' 9 | baseUrl: '' 10 | requests: 0 11 | concurrency: 0 12 | tasks: [] 13 | 14 | if @params.id? 15 | @http.get '/api/tests/'+@params.id 16 | .success (res) => 17 | @scope.test = res 18 | else 19 | @addTask() 20 | 21 | angular.extend @scope, 22 | save: @save 23 | addTask: @addTask 24 | removeTask: @removeTask 25 | addHeader: @addHeader 26 | removeHeader: @removeHeader 27 | 28 | addTask: () => 29 | @scope.test.tasks.push 30 | method: 'GET' 31 | path: '' 32 | headers: [] 33 | rawBody: '' 34 | 35 | removeTask: (task) => 36 | @scope.test.tasks = _(@scope.test.tasks).reject (t) -> 37 | t is task 38 | 39 | addHeader: (task) => 40 | task.headers.push 41 | field: '' 42 | value: '' 43 | 44 | removeHeader: (task, header) => 45 | task.headers = _(task.headers).reject (h) -> 46 | h is header 47 | 48 | save: (run = false) => 49 | console.log @scope.test 50 | @http.post '/api/tests', @scope.test 51 | .success (res) => 52 | if run is true 53 | @location.path '/tests/'+res._id 54 | else 55 | @location.path '/tests' 56 | console.debug 'Your test has been saved' 57 | .error (err) => 58 | console.debug 'An error occured' 59 | -------------------------------------------------------------------------------- /assets/javascripts/controllers/start_test.coffee: -------------------------------------------------------------------------------- 1 | module.exports = class 2 | @$inject: ['$scope', '$http', '$routeParams', '$location', '$websocket'] 3 | constructor: (@scope, @http, @params, @location, @socket) -> 4 | @scope.test = 5 | name: '' 6 | tasks: [] 7 | 8 | @scope.total = 9 | requests: 0 10 | success: 0 11 | failures: 0 12 | min: 0 13 | mean: 0 14 | max: 0 15 | rps: '..' 16 | 17 | @start = null 18 | 19 | @host = @location.host() 20 | @host = @host + ':' + @location.port() if @location.port() isnt 80 and @location.port() isnt 443 21 | 22 | @http.get '/api/tests/'+@params.id 23 | .success (res) => 24 | @scope.test = res 25 | 26 | for task in @scope.test.tasks 27 | task.requests = 0 28 | task.success = 0 29 | task.failures = 0 30 | task.min = 0 31 | task.mean = 0 32 | task.max = 0 33 | task.rps = '..' 34 | 35 | @stream = @socket 'ws://'+@host+'/api/tests/'+@params.id+'/start' 36 | 37 | @stream.onOpen () => 38 | @start = Date.now() 39 | 40 | @stream.onMessage (message) => 41 | data = angular.fromJson(message.data) 42 | 43 | # We increment the number of requests 44 | @scope.test.tasks[data.task].requests++ 45 | @scope.total.requests++ 46 | 47 | # Is the request a success or a failure? 48 | if data.statusCode isnt 0 49 | @scope.test.tasks[data.task].success++ 50 | @scope.total.success++ 51 | else 52 | @scope.test.tasks[data.task].failures++ 53 | @scope.total.failures++ 54 | 55 | if data.duration < @scope.test.tasks[data.task].min or @scope.test.tasks[data.task].min is 0 56 | @scope.test.tasks[data.task].min = data.duration 57 | 58 | if data.duration > @scope.test.tasks[data.task].max or @scope.test.tasks[data.task].max is 0 59 | @scope.test.tasks[data.task].max = data.duration 60 | 61 | @scope.test.tasks[data.task].mean = (@scope.test.tasks[data.task].min + @scope.test.tasks[data.task].max) / 2 62 | 63 | @stream.onClose () => 64 | if @start? 65 | time = (Date.now() - @start) / 1000 66 | @scope.total.rps = 0 67 | for task in @scope.test.tasks 68 | task.rps = (task.requests / time).toFixed(2) 69 | @scope.total.rps += task.requests / time 70 | @scope.total.rps = @scope.total.rps.toFixed(2) 71 | @scope.$apply() 72 | -------------------------------------------------------------------------------- /assets/javascripts/index.coffee: -------------------------------------------------------------------------------- 1 | require './modules/app' 2 | 3 | # define our configuration class 4 | class Config 5 | constructor: ($routeProvider, $locationProvider) -> 6 | $locationProvider.html5Mode false 7 | 8 | $routeProvider 9 | .when '/', 10 | templateUrl: 'views/home.html' 11 | 12 | .when '/new', 13 | templateUrl: 'views/new_test.html' 14 | controller: 'NewTestController' 15 | 16 | .when '/tests', 17 | templateUrl: 'views/all_tests.html' 18 | controller: 'AllTestsController' 19 | 20 | .when '/tests/:id', 21 | templateUrl: 'views/start_test.html' 22 | controller: 'StartTestController' 23 | 24 | .when '/tests/:id/edit', 25 | templateUrl: 'views/new_test.html' 26 | controller: 'NewTestController' 27 | 28 | .otherwise 29 | redirectTo: '/' 30 | 31 | # register our configuration class 32 | angular.module('app').config ['$routeProvider', '$locationProvider', Config] 33 | -------------------------------------------------------------------------------- /assets/javascripts/modules/app.coffee: -------------------------------------------------------------------------------- 1 | require 'angular' 2 | require 'angular-route' 3 | require 'angular-websocket' 4 | 5 | require './app.controllers' 6 | 7 | app = angular.module 'app', ['ngRoute', 'ngWebSocket', 'app.controllers'] 8 | 9 | module.exports = app 10 | -------------------------------------------------------------------------------- /assets/javascripts/modules/app.controllers.coffee: -------------------------------------------------------------------------------- 1 | app = angular.module 'app.controllers', [] 2 | 3 | app.controller 'NewTestController', require '../controllers/new_test' 4 | app.controller 'EditTestController', require '../controllers/edit_test' 5 | app.controller 'AllTestsController', require '../controllers/all_tests' 6 | app.controller 'StartTestController', require '../controllers/start_test' 7 | 8 | module.exports = app 9 | -------------------------------------------------------------------------------- /assets/stylesheets/animations.styl: -------------------------------------------------------------------------------- 1 | @keyframes color-flip 2 | to 3 | background white 4 | color $blue 5 | transform rotateY(360deg) 6 | -------------------------------------------------------------------------------- /assets/stylesheets/colors.styl: -------------------------------------------------------------------------------- 1 | $blue = #00aaea 2 | $green = #009999 3 | $red = #c33434 4 | $very-light-grey = #c0c0c0 5 | $light-grey = #fafafa 6 | $grey = #959595 7 | $dark-grey = #777777 8 | -------------------------------------------------------------------------------- /assets/stylesheets/elements.styl: -------------------------------------------------------------------------------- 1 | button(bg-color = $blue, text-color = white) 2 | background bg-color 3 | border 2px solid text-color 4 | border-radius 6px 5 | color text-color 6 | cursor pointer 7 | font-family 'Montserrat', sans-serif 8 | font-weight bold 9 | padding remify(12) remify(24) 10 | text-align center 11 | text-decoration none 12 | text-transform uppercase 13 | transition color .5s, background .5s 14 | 15 | &:hover 16 | background text-color 17 | border 2px solid bg-color 18 | color bg-color 19 | &:active 20 | background bg-color 21 | border 2px solid text-color 22 | color text-color 23 | 24 | &:disabled 25 | background darken(bg-color, 10%) 26 | border 2px solid text-color 27 | color text-color 28 | opacity .4 29 | 30 | input:disabled 31 | opacity .4 32 | -------------------------------------------------------------------------------- /assets/stylesheets/fonts.styl: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'fontello'; 3 | src: url('../fonts/fontello.eot?64691259'); 4 | src: url('../fonts/fontello.eot?64691259#iefix') format('embedded-opentype'), 5 | url('../fonts/fontello.woff?64691259') format('woff'), 6 | url('../fonts/fontello.ttf?64691259') format('truetype'), 7 | url('../fonts/fontello.svg?64691259#fontello') format('svg'); 8 | font-weight: normal; 9 | font-style: normal; 10 | } 11 | 12 | @font-face { 13 | font-family: 'Pacifico'; 14 | src: url('../fonts/Pacifico.ttf'); 15 | font-weight: normal; 16 | font-style: normal; 17 | } 18 | 19 | @font-face { 20 | font-family: 'Montserrat'; 21 | src: url('../fonts/Montserrat-Regular.ttf'); 22 | font-weight: normal; 23 | font-style: normal; 24 | } 25 | 26 | @font-face { 27 | font-family: 'Montserrat'; 28 | src: url('../fonts/Montserrat-Bold.ttf'); 29 | font-weight: bold; 30 | font-style: normal; 31 | } 32 | -------------------------------------------------------------------------------- /assets/stylesheets/icons.styl: -------------------------------------------------------------------------------- 1 | [class^="icon-"]:before, [class*=" icon-"]:before { 2 | font-family: "fontello"; 3 | font-style: normal; 4 | font-weight: normal; 5 | speak: none; 6 | 7 | display: inline-block; 8 | text-decoration: inherit; 9 | width: 1em; 10 | margin-right: .2em; 11 | text-align: center; 12 | /* opacity: .8; */ 13 | 14 | /* For safety - reset parent styles, that can break glyph codes*/ 15 | font-variant: normal; 16 | text-transform: none; 17 | 18 | /* fix buttons height, for twitter bootstrap */ 19 | //line-height: 1em; 20 | 21 | /* Animation center compensation - margins should be symmetric */ 22 | /* remove if not needed */ 23 | margin-left: .2em; 24 | 25 | /* you can be more comfortable with increased icons size */ 26 | /* font-size: 120%; */ 27 | 28 | /* Uncomment for 3D effect */ 29 | /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */ 30 | } 31 | 32 | .icon-docs:before { content: '\e800'; } /* '' */ 33 | .icon-github:before { content: '\e801'; } /* '' */ 34 | .icon-eye:before { content: '\e802'; } /* '' */ 35 | .icon-plus-squared:before { content: '\e803'; } /* '' */ 36 | .icon-twitter:before { content: '\e804'; } /* '' */ 37 | .icon-gauge:before { content: '\e805'; } /* '' */ 38 | .icon-flow-branch:before { content: '\e806'; } /* '' */ 39 | .icon-tools:before { content: '\e807'; } /* '' */ 40 | -------------------------------------------------------------------------------- /assets/stylesheets/main.styl: -------------------------------------------------------------------------------- 1 | @import 'jeet' 2 | @import 'citrine' 3 | 4 | @import 'fonts' 5 | @import 'colors' 6 | @import 'icons' 7 | @import 'animations' 8 | @import 'elements' 9 | 10 | citrine-box-sizing() 11 | citrine-reset() 12 | 13 | a, a:visited, a:hover 14 | text-decoration none 15 | 16 | .container 17 | center(1140px) 18 | 19 | body 20 | color $dark-grey 21 | font-family 'Montserrat', sans-serif 22 | font-size remify(14) 23 | font-weight 400 24 | line-height 1.5 25 | 26 | body > header 27 | background $blue 28 | box-shadow inset rgba(0, 0, 0, .20) 0 -2px 0 29 | height remify(76) 30 | 31 | h1 32 | color white 33 | display inline-block 34 | font-family 'Pacifico', sans-serif 35 | font-size remify(38) 36 | float left 37 | margin rhythm(1, 2, 2) 0 rhythm(1, 2) 0 38 | text-align center 39 | a 40 | color white 41 | text-decoration none 42 | span 43 | font-size remify(18) 44 | 45 | nav 46 | display block 47 | float right 48 | line-height remify(79) 49 | 50 | ul li 51 | display inline-block 52 | position relative 53 | pointer-events initial 54 | &:hover 55 | a 56 | animation color-flip 1s ease 57 | animation-fill-mode forwards 58 | a 59 | color white 60 | display inline-block 61 | font-size remify(13) 62 | font-weight 700 63 | height remify(74) 64 | padding 0 remify(16) 65 | text-transform uppercase 66 | &:hover 67 | color white 68 | 69 | main > footer 70 | background darken($blue, 80%) 71 | padding remify(32) 0 72 | span 73 | color white 74 | 75 | #hero 76 | height 400px 77 | background darken($blue, 10%) 78 | text-align center 79 | 80 | h2 81 | color white 82 | font-size remify(48) 83 | font-weight bold 84 | text-shadow #fff 0 0 1px, #000 1px 1px 1px 85 | margin remify(100) 0 86 | 87 | a 88 | font-size remify(18) 89 | &:nth-child(2) 90 | button(darken($blue, 10%) , white) 91 | &:last-child 92 | button(white, darken($blue, 10%)) 93 | margin-left remify(48) 94 | 95 | #how-to 96 | height 400px 97 | padding remify(48) 0 remify(32) 0 98 | text-align center 99 | 100 | h2 101 | color $dark-grey 102 | font-size remify(36) 103 | margin 0 0 remify(42) 0 104 | text-shadow #000 0 0 1px, #fff 1px 1px 1px 105 | 106 | li 107 | col(1/3) 108 | position relative 109 | 110 | span 111 | background $blue 112 | display inline-table 113 | border 3px solid $blue 114 | border-radius 50% 115 | width 120px 116 | height 120px 117 | position absolute 118 | margin-left -60px 119 | margin-top -60px 120 | top 50% 121 | left 50% 122 | transition background 0.3s ease 123 | &:hover 124 | background white 125 | i 126 | color $blue 127 | i 128 | display table-cell 129 | color white 130 | font-size remify(58) 131 | vertical-align middle 132 | transition color 0.3s ease 133 | p 134 | margin-top remify(180) 135 | 136 | .subheader 137 | background darken($blue, 10%) 138 | padding remify(38) 139 | 140 | h2 141 | color white 142 | font-size remify(32) 143 | font-weight bold 144 | text-transform uppercase 145 | text-shadow #fff 0 0 0px, #fff 0px 0px 1px 146 | 147 | #new 148 | form 149 | border 1px solid $very-light-grey 150 | border-radius 4px 151 | margin-top remify(38) 152 | fieldset 153 | padding remify(12) 154 | li 155 | display inline-block 156 | input, label 157 | display block 158 | width 100% 159 | input 160 | border 1px solid $very-light-grey 161 | border-radius 2px 162 | margin-top remify(6) 163 | padding remify(6) 164 | select 165 | background white 166 | border-radius 2px 167 | margin-top remify(6) 168 | padding remify(6) 169 | .new-test 170 | form 171 | col(1/2) 172 | section 173 | col(1/2) 174 | background $light-grey 175 | border 1px solid $very-light-grey 176 | border-radius 4px 177 | margin-top remify(38) 178 | padding remify(12) 179 | h2 180 | font-size remify(28) 181 | text-align center 182 | ul 183 | margin remify(14) 0 184 | li 185 | list-style disc 186 | list-style-position inside 187 | div 188 | text-align center 189 | button 190 | button($blue, white) 191 | .tasks 192 | margin-bottom remify(38) 193 | form 194 | col(1/2, cycle:2) 195 | ul 196 | center() 197 | li 198 | &:first-child 199 | col(.2) 200 | &:nth-child(2) 201 | col(.4) 202 | &:nth-child(3) 203 | col(.4) 204 | a 205 | color $red 206 | font-weight bold 207 | text-decoration underline 208 | margin 0 remify(6) 209 | button 210 | button() 211 | padding remify(3) remify(6) 212 | border 2px solid $blue 213 | border-radius 2px 214 | 215 | 216 | #feedback 217 | margin-top remify(38) 218 | table 219 | border 1px solid $very-light-grey 220 | font-size remify(18) 221 | font-weight bold 222 | text-align left 223 | width 100% 224 | tr 225 | &:first-child 226 | background $grey 227 | color white 228 | &.odd 229 | background white 230 | &.even 231 | background $light-grey 232 | td, th 233 | padding remify(6) 0 remify(6) remify(6) 234 | 235 | #all-tests 236 | margin-top remify(38) 237 | 238 | .test 239 | col(1/3, cycle:3) 240 | background $light-grey 241 | border 1px solid $very-light-grey 242 | border-radius 4px 243 | padding remify(12) remify(24) 244 | margin-bottom remify(24) 245 | 246 | h3 247 | text-transform uppercase 248 | .buttons 249 | float right 250 | a 251 | font-weight bold 252 | color $blue 253 | text-decoration underline 254 | margin 0 remify(6) 255 | &:nth-child(1) 256 | color $green 257 | &:nth-child(2) 258 | color $blue 259 | &:nth-child(3) 260 | color $red 261 | -------------------------------------------------------------------------------- /assets/views/all_tests.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |

View all my tests

4 |
5 |
6 | 7 |
8 |
9 |
10 |

{{test.name}}

11 |
12 | Start 13 | Edit 14 | Delete 15 |
16 |
17 |
18 |
19 | -------------------------------------------------------------------------------- /assets/views/home.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |

A load/stress testing tool without... stress

4 | Try me !Contribute 5 |
6 |
7 | 8 |
9 |
10 |

How it works

11 |
    12 |
  • 13 | 14 | 15 | 16 |

    Create a new test

    17 |
  • 18 |
  • 19 | 20 | 21 | 22 |

    Add a list of tasks to run

    23 |
  • 24 |
  • 25 | 26 | 27 | 28 |

    Monitor the requests in real-time

    29 |
  • 30 |
31 |
32 |
33 | 34 |
35 |
36 | Gopherling is developed by Frostwind for the Gophergala. 37 |
38 |
39 | -------------------------------------------------------------------------------- /assets/views/new_test.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |

Add a new test

4 |
5 |
6 | 7 |
8 |
9 |
10 |
11 | 12 | 13 |
14 |
15 | 16 | 17 |
18 |
19 | 20 | 21 |
22 |
23 | 24 | 25 |
26 |
27 | 28 | 29 |
30 |
31 |
32 |

How to?

33 |
    34 |
  • Start by configuring your test setting, and your first task
  • 35 |
  • Click on the "Add Task" button if you need to add more tasks
  • 36 |
  • Once finished you can either save your test for later use, and click on the "Save & Run" button to start it immediatly
  • 37 |
38 |
39 | 40 | 41 | 42 |
43 |
44 |
45 |
46 |
47 |
48 |
    49 |
  • 50 | 51 | 57 |
  • 58 |
  • 59 | 60 | 61 |
  • 62 |
  • 63 | 64 | 65 |
  • 66 |
67 |
68 |
69 |

70 | 71 | 72 |
73 |
74 |

Headers

75 | 76 |
77 |
78 |
    79 |
  • 80 |
    81 | Remove 82 |
  • 83 |
  • 84 | 85 | 86 |
  • 87 |
  • 88 | 89 | 90 |
  • 91 |
92 |
93 |
94 |

Remove this task

95 | 96 |
97 |
98 |
99 | 100 |
101 | -------------------------------------------------------------------------------- /assets/views/start_test.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |

{{test.name}}

4 |
5 |
6 | 7 |
8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 |
MethodPathRequestsSuccessFailuresMinMeanMaxRps
[{{task.method}}]{{task.path}}{{task.requests}}{{task.success}}{{task.failures}}{{(task.min / 1000000).toFixed(2)}} ms{{(task.mean / 1000000).toFixed(2)}} ms{{(task.max / 1000000).toFixed(2)}} ms{{task.rps}} / s
 Total{{total.requests}}{{total.success}}{{total.failures}}{{(total.min / 1000000).toFixed(2)}} ms{{(total.mean / 1000000).toFixed(2)}} ms{{(total.max / 1000000).toFixed(2)}} ms{{total.rps}} / s
47 |
48 |
49 | -------------------------------------------------------------------------------- /gopherling.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "encoding/json" 5 | "flag" 6 | "fmt" 7 | "github.com/gophergala/gopherling/loader" 8 | "github.com/gophergala/gopherling/models" 9 | "github.com/gorilla/websocket" 10 | "github.com/julienschmidt/httprouter" 11 | "gopkg.in/mgo.v2" 12 | "gopkg.in/mgo.v2/bson" 13 | "net/http" 14 | ) 15 | 16 | var ( 17 | database *mgo.Database 18 | databaseSession *mgo.Session 19 | upgrader = websocket.Upgrader{ 20 | ReadBufferSize: 1024, 21 | WriteBufferSize: 1024, 22 | } 23 | ) 24 | 25 | func showTests(w http.ResponseWriter, r *http.Request, _ httprouter.Params) { 26 | results := make([]models.Test, 0) 27 | err := database.C("tests").Find(bson.M{}).All(&results) 28 | 29 | if err != nil { 30 | w.WriteHeader(500) 31 | return 32 | } 33 | 34 | js, err := json.Marshal(results) 35 | if err != nil { 36 | w.WriteHeader(500) 37 | return 38 | } 39 | 40 | w.Header().Set("Content-Type", "application/json") 41 | w.WriteHeader(200) 42 | w.Write(js) 43 | } 44 | 45 | func addTest(w http.ResponseWriter, r *http.Request, _ httprouter.Params) { 46 | decoder := json.NewDecoder(r.Body) 47 | 48 | var t models.Test 49 | 50 | err := decoder.Decode(&t) 51 | if err != nil { 52 | w.WriteHeader(400) 53 | return 54 | } 55 | 56 | tests := database.C("tests") 57 | 58 | // i'm in a hurry :p 59 | if len(t.Id) > 0 { 60 | err = database.C("tests").RemoveId(t.Id) 61 | } 62 | 63 | t.Id = bson.NewObjectId() 64 | err = tests.Insert(&t) 65 | 66 | if err != nil { 67 | w.WriteHeader(500) 68 | } else { 69 | js, err := json.Marshal(t) 70 | if err != nil { 71 | w.WriteHeader(500) 72 | return 73 | } 74 | 75 | w.Header().Set("Content-Type", "application/json") 76 | w.WriteHeader(201) 77 | w.Write(js) 78 | } 79 | } 80 | 81 | func showTest(w http.ResponseWriter, r *http.Request, ps httprouter.Params) { 82 | var t models.Test 83 | 84 | err := database.C("tests").Find(bson.M{"_id": bson.ObjectIdHex(ps.ByName("id"))}).One(&t) 85 | 86 | if err != nil { 87 | w.WriteHeader(404) 88 | return 89 | } 90 | 91 | js, err := json.Marshal(t) 92 | if err != nil { 93 | w.WriteHeader(500) 94 | return 95 | } 96 | 97 | w.Header().Set("Content-Type", "application/json") 98 | w.WriteHeader(200) 99 | w.Write(js) 100 | } 101 | 102 | func updateTest(w http.ResponseWriter, r *http.Request, ps httprouter.Params) { 103 | fmt.Fprintf(w, "I want to update a test, (id: %s)!\n", ps.ByName("id")) 104 | } 105 | 106 | func deleteTest(w http.ResponseWriter, r *http.Request, ps httprouter.Params) { 107 | err := database.C("tests").RemoveId(bson.ObjectIdHex(ps.ByName("id"))) 108 | 109 | if err != nil { 110 | w.WriteHeader(400) 111 | return 112 | } 113 | 114 | w.WriteHeader(200) 115 | } 116 | 117 | func startTest(w http.ResponseWriter, r *http.Request, ps httprouter.Params) { 118 | conn, err := upgrader.Upgrade(w, r, nil) 119 | if err != nil { 120 | fmt.Println(err) 121 | return 122 | } 123 | 124 | var t models.Test 125 | 126 | err = database.C("tests").Find(bson.M{"_id": bson.ObjectIdHex(ps.ByName("id"))}).One(&t) 127 | if err != nil { 128 | if err := conn.WriteMessage(websocket.TextMessage, []byte("Not found")); err != nil { 129 | fmt.Println("An error occured: the requested test doesn't exist") 130 | } 131 | return 132 | } 133 | 134 | l := loader.New(t.Requests, t.Concurrency, conn) 135 | 136 | for _, task := range t.Tasks { 137 | l.AddTasks(task.Method, t.BaseUrl, task.Path, task.Headers, task.RawBody) 138 | } 139 | 140 | l.Run() 141 | } 142 | 143 | func main() { 144 | // Database infos 145 | var dbHost, dbPort string 146 | flag.StringVar(&dbHost, "dbHost", "127.0.0.1", "mongoDB host") 147 | flag.StringVar(&dbPort, "dbPort", "27017", "mongoDB port") 148 | flag.Parse() 149 | 150 | // Initialize our database connection 151 | databaseSession, err := mgo.Dial(dbHost + ":" + dbPort) 152 | if err != nil { 153 | panic("Couldn't connect to the database server") 154 | } else { 155 | fmt.Println("Successfully connected to the database server") 156 | } 157 | 158 | defer databaseSession.Close() 159 | 160 | // Select the appropriate database 161 | database = databaseSession.DB("gopherling") 162 | 163 | // Create a new router instance 164 | router := httprouter.New() 165 | 166 | // View all the tests 167 | router.GET("/api/tests", showTests) 168 | 169 | // Add a test 170 | router.POST("/api/tests", addTest) 171 | 172 | // View a single test 173 | router.GET("/api/tests/:id", showTest) 174 | 175 | // Update a test 176 | router.PUT("/api/tests/:id", updateTest) 177 | 178 | // Delete a test 179 | router.DELETE("/api/tests/:id", deleteTest) 180 | 181 | // Start a test 182 | router.GET("/api/tests/:id/start", startTest) 183 | 184 | // Catch-all (angular app) 185 | router.NotFound = http.HandlerFunc(http.FileServer(http.Dir("static")).ServeHTTP) 186 | 187 | // Start listening 188 | fmt.Println("Gopherling server started on port 9410") 189 | http.ListenAndServe(":9410", router) 190 | } 191 | -------------------------------------------------------------------------------- /gulpfile.coffee: -------------------------------------------------------------------------------- 1 | gulp = require 'gulp' 2 | connect = require 'gulp-connect' 3 | stylus = require 'gulp-stylus' 4 | prefix = require 'gulp-autoprefixer' 5 | browserify = require 'browserify' 6 | source = require 'vinyl-source-stream' 7 | 8 | jeet = require 'jeet' 9 | citrine = require 'citrine' 10 | 11 | handleError = (err) -> 12 | console.log err.toString() 13 | this.emit('end') 14 | 15 | gulp.task 'js', () -> 16 | browserify {entries: ['./assets/javascripts/index.coffee'], extensions: ['.coffee'], debug : false} 17 | .transform 'coffeeify' 18 | .bundle() 19 | .on 'error', handleError 20 | .pipe source 'app.js' 21 | .pipe gulp.dest './static/javascripts' 22 | .pipe connect.reload() 23 | 24 | gulp.task 'css', () -> 25 | gulp.src './assets/stylesheets/*.styl' 26 | .pipe stylus 27 | use: [jeet(), citrine()] 28 | .pipe prefix "last 4 versions", "> 1%", "ie 9", "ie 8", { cascade: true } 29 | .pipe gulp.dest './static/stylesheets' 30 | .pipe connect.reload() 31 | 32 | gulp.task 'fonts', () -> 33 | gulp.src './assets/fonts/**/*' 34 | .pipe gulp.dest './static/fonts' 35 | .pipe connect.reload() 36 | 37 | gulp.task 'html', () -> 38 | gulp.src './assets/**/*.html' 39 | .pipe gulp.dest './static' 40 | .pipe connect.reload() 41 | 42 | gulp.task 'webserver', () -> 43 | connect.server 44 | root: 'static' 45 | livereload: true 46 | port: 4000 47 | 48 | gulp.task 'watch', () -> 49 | gulp.watch 'assets/javascripts/**/*.coffee', ['js'] 50 | gulp.watch 'assets/stylesheets/**/*.styl', ['css'] 51 | gulp.watch 'assets/fonts/**/*', ['fonts'] 52 | gulp.watch 'assets/**/*', ['html'] 53 | 54 | gulp.task 'build', ['js', 'css', 'fonts', 'html'] 55 | gulp.task 'server', ['build', 'webserver', 'watch'] 56 | -------------------------------------------------------------------------------- /loader/loader.go: -------------------------------------------------------------------------------- 1 | package loader 2 | 3 | import ( 4 | "bytes" 5 | "fmt" 6 | "github.com/gophergala/gopherling/models" 7 | "github.com/gorilla/websocket" 8 | "net/http" 9 | "sync" 10 | "time" 11 | ) 12 | 13 | type feedback struct { 14 | Task int `json:"task"` 15 | StatusCode int `json:"statusCode"` 16 | Duration time.Duration `json:"duration"` 17 | } 18 | 19 | type Task struct { 20 | method string 21 | host string 22 | path string 23 | headers []models.Header 24 | rawBody string 25 | } 26 | 27 | func (t *Task) Request() *http.Request { 28 | body := bytes.NewBufferString(t.rawBody) 29 | 30 | req, err := http.NewRequest(t.method, t.host+"/"+t.path, body) 31 | 32 | for _, header := range t.headers { 33 | req.Header.Set(header.Field, header.Value) 34 | } 35 | 36 | if err != nil { 37 | fmt.Println("something went wrong !") 38 | } 39 | 40 | return req 41 | } 42 | 43 | type loader struct { 44 | n int 45 | c int 46 | 47 | tasks []*Task 48 | ws *websocket.Conn 49 | } 50 | 51 | func New(n, c int, ws *websocket.Conn) *loader { 52 | tasks := make([]*Task, 0) 53 | return &loader{n, c, tasks, ws} 54 | } 55 | 56 | func (l *loader) AddTasks(method string, host string, path string, headers []models.Header, rawBody string) { 57 | t := &Task{method: method, 58 | host: host, 59 | path: path, 60 | headers: headers, 61 | rawBody: rawBody, 62 | } 63 | 64 | l.tasks = append(l.tasks, t) 65 | } 66 | 67 | func (l *loader) spawnClient(wg *sync.WaitGroup, queue chan []*Task) { 68 | // this is one out of c clients 69 | client := &http.Client{} 70 | 71 | // if we're not busy, get a tasks list from the queue channel 72 | for tasks := range queue { 73 | for i, task := range tasks { 74 | req := task.Request() 75 | start := time.Now() 76 | // Send the request 77 | res, err := client.Do(req) 78 | if err != nil { 79 | if err := l.ws.WriteJSON(feedback{Task: i, StatusCode: 0, Duration: time.Since(start)}); err != nil { 80 | fmt.Println("Couldn't write to the socket") 81 | } 82 | } else { 83 | if err := l.ws.WriteJSON(feedback{Task: i, StatusCode: res.StatusCode, Duration: time.Since(start)}); err != nil { 84 | fmt.Println("Couldn't write to the socket") 85 | } 86 | 87 | res.Body.Close() 88 | } 89 | } 90 | // We are done 91 | wg.Done() 92 | } 93 | } 94 | 95 | func (l *loader) Run() { 96 | // We'll block until all requests are done 97 | var wg sync.WaitGroup 98 | wg.Add(l.n) 99 | 100 | // The queue channel will contain an array of tasks (up to n time) 101 | queue := make(chan []*Task, l.n) 102 | 103 | // Spawn all our clients 104 | for i := 0; i < l.c; i++ { 105 | go func() { 106 | l.spawnClient(&wg, queue) 107 | }() 108 | } 109 | 110 | // Populate our channel with tasks arrays 111 | for i := 0; i < l.n; i++ { 112 | queue <- l.tasks 113 | } 114 | 115 | // Close our channel 116 | close(queue) 117 | 118 | // unblock 119 | wg.Wait() 120 | 121 | // close the socket 122 | l.ws.Close() 123 | } 124 | -------------------------------------------------------------------------------- /models/models.go: -------------------------------------------------------------------------------- 1 | package models 2 | 3 | import ( 4 | "gopkg.in/mgo.v2/bson" 5 | ) 6 | 7 | type Header struct { 8 | Field string `bson:"field" json:"field"` 9 | Value string `bson:"value" json:"value"` 10 | } 11 | 12 | type Task struct { 13 | Method string `bson:"method" json:"method"` 14 | Path string `bson:"path" json:"path"` 15 | Headers []Header `bson:"headers" json:"headers"` 16 | RawBody string `bson:"raw_body" json:"rawBody"` 17 | } 18 | 19 | type Test struct { 20 | Id bson.ObjectId `bson:"_id,omitempty" json:"_id,omitempty"` 21 | Name string `bson:"name" json:"name"` 22 | Description string `bson:"description" json:"description"` 23 | BaseUrl string `bson:"base_url" json:"baseUrl"` 24 | Requests int `bson:"requests" json:"requests"` 25 | Concurrency int `bson:"concurrency" json:"concurrency"` 26 | Tasks []Task `bson:"tasks" json:"tasks"` 27 | } 28 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Gopherling", 3 | "version": "0.0.0", 4 | "description": "to-do", 5 | "main": "index.js", 6 | "scripts": { 7 | "setup": "npm install", 8 | "build": "gulp build", 9 | "server": "gulp server" 10 | }, 11 | "repository": { 12 | "type": "git", 13 | "url": "https://github.com/gophergala/gopherling.git" 14 | }, 15 | "author": "frostwind (http://www.frostwind.me/)", 16 | "license": "GNU GPL v3", 17 | "bugs": { 18 | "url": "https://github.com/gophergala/gopherling/issues" 19 | }, 20 | "homepage": "https://github.com/gophergala/gopherling", 21 | "private": true, 22 | "devDependencies": { 23 | "angular": "^1.3.8", 24 | "angular-route": "^1.3.8", 25 | "angular-websocket": "^1.0.7", 26 | "browserify": "^8.1.1", 27 | "citrine": "0.0.7", 28 | "coffee-script": "^1.8.0", 29 | "coffeeify": "^1.0.0", 30 | "gulp": "^3.8.10", 31 | "gulp-autoprefixer": "^2.1.0", 32 | "gulp-connect": "^2.2.0", 33 | "gulp-stylus": "^2.0.0", 34 | "jeet": "^6.1.2", 35 | "underscore": "^1.7.0", 36 | "vinyl-source-stream": "^1.0.0", 37 | "ws": "^0.7.0" 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /static/fonts/Montserrat-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gophergala/gopherling/5593073cc7c2eff74b047c15044b6b8009628d7c/static/fonts/Montserrat-Bold.ttf -------------------------------------------------------------------------------- /static/fonts/Montserrat-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gophergala/gopherling/5593073cc7c2eff74b047c15044b6b8009628d7c/static/fonts/Montserrat-Regular.ttf -------------------------------------------------------------------------------- /static/fonts/Pacifico.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gophergala/gopherling/5593073cc7c2eff74b047c15044b6b8009628d7c/static/fonts/Pacifico.ttf -------------------------------------------------------------------------------- /static/fonts/fontello.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gophergala/gopherling/5593073cc7c2eff74b047c15044b6b8009628d7c/static/fonts/fontello.eot -------------------------------------------------------------------------------- /static/fonts/fontello.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Copyright (C) 2015 by original authors @ fontello.com 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /static/fonts/fontello.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gophergala/gopherling/5593073cc7c2eff74b047c15044b6b8009628d7c/static/fonts/fontello.ttf -------------------------------------------------------------------------------- /static/fonts/fontello.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gophergala/gopherling/5593073cc7c2eff74b047c15044b6b8009628d7c/static/fonts/fontello.woff -------------------------------------------------------------------------------- /static/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Gopherling 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 |
23 |

24 | Gopherling 25 |

26 | 27 | 37 |
38 |
39 | 40 |
41 |
42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /static/stylesheets/animations.css: -------------------------------------------------------------------------------- 1 | @-webkit-keyframes color-flip { 2 | to { 3 | background: #fff; 4 | color: $blue; 5 | -webkit-transform: rotateY(360deg); 6 | transform: rotateY(360deg); 7 | } 8 | } 9 | @keyframes color-flip { 10 | to { 11 | background: #fff; 12 | color: $blue; 13 | -webkit-transform: rotateY(360deg); 14 | transform: rotateY(360deg); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /static/stylesheets/colors.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gophergala/gopherling/5593073cc7c2eff74b047c15044b6b8009628d7c/static/stylesheets/colors.css -------------------------------------------------------------------------------- /static/stylesheets/elements.css: -------------------------------------------------------------------------------- 1 | input:disabled { 2 | opacity: 0.4; 3 | } 4 | -------------------------------------------------------------------------------- /static/stylesheets/fonts.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'fontello'; 3 | src: url("../fonts/fontello.eot?64691259"); 4 | src: url("../fonts/fontello.eot?64691259#iefix") format('embedded-opentype'), url("../fonts/fontello.woff?64691259") format('woff'), url("../fonts/fontello.ttf?64691259") format('truetype'), url("../fonts/fontello.svg?64691259#fontello") format('svg'); 5 | font-weight: normal; 6 | font-style: normal; 7 | } 8 | @font-face { 9 | font-family: 'Pacifico'; 10 | src: url("../fonts/Pacifico.ttf"); 11 | font-weight: normal; 12 | font-style: normal; 13 | } 14 | @font-face { 15 | font-family: 'Montserrat'; 16 | src: url("../fonts/Montserrat-Regular.ttf"); 17 | font-weight: normal; 18 | font-style: normal; 19 | } 20 | @font-face { 21 | font-family: 'Montserrat'; 22 | src: url("../fonts/Montserrat-Bold.ttf"); 23 | font-weight: bold; 24 | font-style: normal; 25 | } 26 | -------------------------------------------------------------------------------- /static/stylesheets/icons.css: -------------------------------------------------------------------------------- 1 | [class^="icon-"]:before, 2 | [class*=" icon-"]:before { 3 | font-family: "fontello"; 4 | font-style: normal; 5 | font-weight: normal; 6 | speak: none; 7 | display: inline-block; 8 | text-decoration: inherit; 9 | width: 1em; 10 | margin-right: 0.2em; 11 | text-align: center; 12 | /* opacity: .8; */ 13 | /* For safety - reset parent styles, that can break glyph codes*/ 14 | font-variant: normal; 15 | text-transform: none; 16 | /* fix buttons height, for twitter bootstrap */ 17 | /* Animation center compensation - margins should be symmetric */ 18 | /* remove if not needed */ 19 | margin-left: 0.2em; 20 | /* you can be more comfortable with increased icons size */ 21 | /* font-size: 120%; */ 22 | /* Uncomment for 3D effect */ 23 | /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */ 24 | } 25 | .icon-docs:before { 26 | content: '\e800'; 27 | } 28 | /* '' */ 29 | .icon-github:before { 30 | content: '\e801'; 31 | } 32 | /* '' */ 33 | .icon-eye:before { 34 | content: '\e802'; 35 | } 36 | /* '' */ 37 | .icon-plus-squared:before { 38 | content: '\e803'; 39 | } 40 | /* '' */ 41 | .icon-twitter:before { 42 | content: '\e804'; 43 | } 44 | /* '' */ 45 | .icon-gauge:before { 46 | content: '\e805'; 47 | } 48 | /* '' */ 49 | .icon-flow-branch:before { 50 | content: '\e806'; 51 | } 52 | /* '' */ 53 | .icon-tools:before { 54 | content: '\e807'; 55 | } 56 | /* '' */ 57 | -------------------------------------------------------------------------------- /static/stylesheets/main.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'fontello'; 3 | src: url("../fonts/fontello.eot?64691259"); 4 | src: url("../fonts/fontello.eot?64691259#iefix") format('embedded-opentype'), url("../fonts/fontello.woff?64691259") format('woff'), url("../fonts/fontello.ttf?64691259") format('truetype'), url("../fonts/fontello.svg?64691259#fontello") format('svg'); 5 | font-weight: normal; 6 | font-style: normal; 7 | } 8 | @font-face { 9 | font-family: 'Pacifico'; 10 | src: url("../fonts/Pacifico.ttf"); 11 | font-weight: normal; 12 | font-style: normal; 13 | } 14 | @font-face { 15 | font-family: 'Montserrat'; 16 | src: url("../fonts/Montserrat-Regular.ttf"); 17 | font-weight: normal; 18 | font-style: normal; 19 | } 20 | @font-face { 21 | font-family: 'Montserrat'; 22 | src: url("../fonts/Montserrat-Bold.ttf"); 23 | font-weight: bold; 24 | font-style: normal; 25 | } 26 | [class^="icon-"]:before, 27 | [class*=" icon-"]:before { 28 | font-family: "fontello"; 29 | font-style: normal; 30 | font-weight: normal; 31 | speak: none; 32 | display: inline-block; 33 | text-decoration: inherit; 34 | width: 1em; 35 | margin-right: 0.2em; 36 | text-align: center; 37 | /* opacity: .8; */ 38 | /* For safety - reset parent styles, that can break glyph codes*/ 39 | font-variant: normal; 40 | text-transform: none; 41 | /* fix buttons height, for twitter bootstrap */ 42 | /* Animation center compensation - margins should be symmetric */ 43 | /* remove if not needed */ 44 | margin-left: 0.2em; 45 | /* you can be more comfortable with increased icons size */ 46 | /* font-size: 120%; */ 47 | /* Uncomment for 3D effect */ 48 | /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */ 49 | } 50 | .icon-docs:before { 51 | content: '\e800'; 52 | } 53 | .icon-github:before { 54 | content: '\e801'; 55 | } 56 | .icon-eye:before { 57 | content: '\e802'; 58 | } 59 | .icon-plus-squared:before { 60 | content: '\e803'; 61 | } 62 | .icon-twitter:before { 63 | content: '\e804'; 64 | } 65 | .icon-gauge:before { 66 | content: '\e805'; 67 | } 68 | .icon-flow-branch:before { 69 | content: '\e806'; 70 | } 71 | .icon-tools:before { 72 | content: '\e807'; 73 | } 74 | @-webkit-keyframes color-flip { 75 | to { 76 | background: #fff; 77 | color: #00aaea; 78 | -webkit-transform: rotateY(360deg); 79 | transform: rotateY(360deg); 80 | } 81 | } 82 | @keyframes color-flip { 83 | to { 84 | background: #fff; 85 | color: #00aaea; 86 | -webkit-transform: rotateY(360deg); 87 | transform: rotateY(360deg); 88 | } 89 | } 90 | input:disabled { 91 | opacity: 0.4; 92 | } 93 | html { 94 | box-sizing: border-box; 95 | } 96 | *, 97 | *:before, 98 | *:after { 99 | box-sizing: inherit; 100 | } 101 | /* http://meyerweb.com/eric/tools/css/reset/ 102 | v2.0 | 20110126 103 | License: none (public domain) 104 | */ 105 | html, 106 | body, 107 | div, 108 | span, 109 | applet, 110 | object, 111 | iframe, 112 | h1, 113 | h2, 114 | h3, 115 | h4, 116 | h5, 117 | h6, 118 | p, 119 | blockquote, 120 | pre, 121 | a, 122 | abbr, 123 | acronym, 124 | address, 125 | big, 126 | cite, 127 | code, 128 | del, 129 | dfn, 130 | em, 131 | img, 132 | ins, 133 | kbd, 134 | q, 135 | s, 136 | samp, 137 | small, 138 | strike, 139 | strong, 140 | sub, 141 | sup, 142 | tt, 143 | var, 144 | b, 145 | u, 146 | i, 147 | center, 148 | dl, 149 | dt, 150 | dd, 151 | ol, 152 | ul, 153 | li, 154 | fieldset, 155 | form, 156 | label, 157 | legend, 158 | table, 159 | caption, 160 | tbody, 161 | tfoot, 162 | thead, 163 | tr, 164 | th, 165 | td, 166 | article, 167 | aside, 168 | canvas, 169 | details, 170 | embed, 171 | figure, 172 | figcaption, 173 | footer, 174 | header, 175 | hgroup, 176 | menu, 177 | nav, 178 | output, 179 | ruby, 180 | section, 181 | summary, 182 | time, 183 | mark, 184 | audio, 185 | video { 186 | margin: 0; 187 | padding: 0; 188 | border: 0; 189 | font-size: 100%; 190 | font: inherit; 191 | vertical-align: baseline; 192 | } 193 | /* HTML5 display-role reset for older browsers */ 194 | article, 195 | aside, 196 | details, 197 | figcaption, 198 | figure, 199 | footer, 200 | header, 201 | hgroup, 202 | menu, 203 | nav, 204 | section { 205 | display: block; 206 | } 207 | body { 208 | line-height: 1; 209 | } 210 | ol, 211 | ul { 212 | list-style: none; 213 | } 214 | blockquote, 215 | q { 216 | quotes: none; 217 | } 218 | blockquote:before, 219 | blockquote:after, 220 | q:before, 221 | q:after { 222 | content: ''; 223 | content: none; 224 | } 225 | table { 226 | border-collapse: collapse; 227 | border-spacing: 0; 228 | } 229 | a, 230 | a:visited, 231 | a:hover { 232 | text-decoration: none; 233 | } 234 | .container { 235 | *zoom: 1; 236 | width: auto; 237 | max-width: 1140px; 238 | float: none; 239 | display: block; 240 | margin-right: auto; 241 | margin-left: auto; 242 | padding-left: 0; 243 | padding-right: 0; 244 | } 245 | .container:before, 246 | .container:after { 247 | content: ''; 248 | display: table; 249 | } 250 | .container:after { 251 | clear: both; 252 | } 253 | body { 254 | color: #777; 255 | font-family: 'Montserrat', sans-serif; 256 | font-size: 0.875rem; 257 | font-weight: 400; 258 | line-height: 1.5; 259 | } 260 | body > header { 261 | background: #00aaea; 262 | box-shadow: inset rgba(0,0,0,0.2) 0 -2px 0; 263 | height: 4.75rem; 264 | } 265 | body > header h1 { 266 | color: #fff; 267 | display: inline-block; 268 | font-family: 'Pacifico', sans-serif; 269 | font-size: 2.375rem; 270 | float: left; 271 | margin: 0.21875rem 0 0.09375rem 0; 272 | text-align: center; 273 | } 274 | body > header h1 a { 275 | color: #fff; 276 | text-decoration: none; 277 | } 278 | body > header h1 span { 279 | font-size: 1.125rem; 280 | } 281 | body > header nav { 282 | display: block; 283 | float: right; 284 | line-height: 4.9375rem; 285 | } 286 | body > header nav ul li { 287 | display: inline-block; 288 | position: relative; 289 | pointer-events: initial; 290 | } 291 | body > header nav ul li:hover a { 292 | -webkit-animation: color-flip 1s ease; 293 | animation: color-flip 1s ease; 294 | -webkit-animation-fill-mode: forwards; 295 | animation-fill-mode: forwards; 296 | } 297 | body > header nav ul li a { 298 | color: #fff; 299 | display: inline-block; 300 | font-size: 0.8125rem; 301 | font-weight: 700; 302 | height: 4.625rem; 303 | padding: 0 1rem; 304 | text-transform: uppercase; 305 | } 306 | body > header nav ul li a:hover { 307 | color: #fff; 308 | } 309 | main > footer { 310 | background: #00222f; 311 | padding: 2rem 0; 312 | } 313 | main > footer span { 314 | color: #fff; 315 | } 316 | #hero { 317 | height: 400px; 318 | background: #0099d3; 319 | text-align: center; 320 | } 321 | #hero h2 { 322 | color: #fff; 323 | font-size: 3rem; 324 | font-weight: bold; 325 | text-shadow: #fff 0 0 1px, #000 1px 1px 1px; 326 | margin: 6.25rem 0; 327 | } 328 | #hero a { 329 | font-size: 1.125rem; 330 | } 331 | #hero a:nth-child(2) { 332 | background: #0099d3; 333 | border: 2px solid #fff; 334 | border-radius: 6px; 335 | color: #fff; 336 | cursor: pointer; 337 | font-family: 'Montserrat', sans-serif; 338 | font-weight: bold; 339 | padding: 0.75rem 1.5rem; 340 | text-align: center; 341 | text-decoration: none; 342 | text-transform: uppercase; 343 | -webkit-transition: color 0.5s, background 0.5s; 344 | transition: color 0.5s, background 0.5s; 345 | } 346 | #hero a:nth-child(2):hover { 347 | background: #fff; 348 | border: 2px solid #0099d3; 349 | color: #0099d3; 350 | } 351 | #hero a:nth-child(2):active { 352 | background: #0099d3; 353 | border: 2px solid #fff; 354 | color: #fff; 355 | } 356 | #hero a:nth-child(2):disabled { 357 | background: #008abe; 358 | border: 2px solid #fff; 359 | color: #fff; 360 | opacity: 0.4; 361 | } 362 | #hero a:last-child { 363 | background: #fff; 364 | border: 2px solid #0099d3; 365 | border-radius: 6px; 366 | color: #0099d3; 367 | cursor: pointer; 368 | font-family: 'Montserrat', sans-serif; 369 | font-weight: bold; 370 | padding: 0.75rem 1.5rem; 371 | text-align: center; 372 | text-decoration: none; 373 | text-transform: uppercase; 374 | -webkit-transition: color 0.5s, background 0.5s; 375 | transition: color 0.5s, background 0.5s; 376 | margin-left: 3rem; 377 | } 378 | #hero a:last-child:hover { 379 | background: #0099d3; 380 | border: 2px solid #fff; 381 | color: #fff; 382 | } 383 | #hero a:last-child:active { 384 | background: #fff; 385 | border: 2px solid #0099d3; 386 | color: #0099d3; 387 | } 388 | #hero a:last-child:disabled { 389 | background: #e6e6e6; 390 | border: 2px solid #0099d3; 391 | color: #0099d3; 392 | opacity: 0.4; 393 | } 394 | #how-to { 395 | height: 400px; 396 | padding: 3rem 0 2rem 0; 397 | text-align: center; 398 | } 399 | #how-to h2 { 400 | color: #777; 401 | font-size: 2.25rem; 402 | margin: 0 0 2.625rem 0; 403 | text-shadow: #000 0 0 1px, #fff 1px 1px 1px; 404 | } 405 | #how-to li { 406 | *zoom: 1; 407 | float: left; 408 | clear: none; 409 | text-align: inherit; 410 | width: 31.3333333333333%; 411 | margin-left: 0%; 412 | margin-right: 3%; 413 | position: relative; 414 | } 415 | #how-to li:before, 416 | #how-to li:after { 417 | content: ''; 418 | display: table; 419 | } 420 | #how-to li:after { 421 | clear: both; 422 | } 423 | #how-to li:last-child { 424 | margin-right: 0%; 425 | } 426 | #how-to li span { 427 | background: #00aaea; 428 | display: inline-table; 429 | border: 3px solid #00aaea; 430 | border-radius: 50%; 431 | width: 120px; 432 | height: 120px; 433 | position: absolute; 434 | margin-left: -60px; 435 | margin-top: -60px; 436 | top: 50%; 437 | left: 50%; 438 | -webkit-transition: background 0.3s ease; 439 | transition: background 0.3s ease; 440 | } 441 | #how-to li span:hover { 442 | background: #fff; 443 | } 444 | #how-to li span:hover i { 445 | color: #00aaea; 446 | } 447 | #how-to li span i { 448 | display: table-cell; 449 | color: #fff; 450 | font-size: 3.625rem; 451 | vertical-align: middle; 452 | -webkit-transition: color 0.3s ease; 453 | transition: color 0.3s ease; 454 | } 455 | #how-to li p { 456 | margin-top: 11.25rem; 457 | } 458 | .subheader { 459 | background: #0099d3; 460 | padding: 2.375rem; 461 | } 462 | .subheader h2 { 463 | color: #fff; 464 | font-size: 2rem; 465 | font-weight: bold; 466 | text-transform: uppercase; 467 | text-shadow: #fff 0 0 0px, #fff 0px 0px 1px; 468 | } 469 | #new form { 470 | border: 1px solid #c0c0c0; 471 | border-radius: 4px; 472 | margin-top: 2.375rem; 473 | } 474 | #new form fieldset { 475 | padding: 0.75rem; 476 | } 477 | #new form fieldset li { 478 | display: inline-block; 479 | } 480 | #new form fieldset input, 481 | #new form fieldset label { 482 | display: block; 483 | width: 100%; 484 | } 485 | #new form fieldset input { 486 | border: 1px solid #c0c0c0; 487 | border-radius: 2px; 488 | margin-top: 0.375rem; 489 | padding: 0.375rem; 490 | } 491 | #new form fieldset select { 492 | background: #fff; 493 | border-radius: 2px; 494 | margin-top: 0.375rem; 495 | padding: 0.375rem; 496 | } 497 | #new .new-test form { 498 | *zoom: 1; 499 | float: left; 500 | clear: none; 501 | text-align: inherit; 502 | width: 48.5%; 503 | margin-left: 0%; 504 | margin-right: 3%; 505 | } 506 | #new .new-test form:before, 507 | #new .new-test form:after { 508 | content: ''; 509 | display: table; 510 | } 511 | #new .new-test form:after { 512 | clear: both; 513 | } 514 | #new .new-test form:last-child { 515 | margin-right: 0%; 516 | } 517 | #new .new-test section { 518 | *zoom: 1; 519 | float: left; 520 | clear: none; 521 | text-align: inherit; 522 | width: 48.5%; 523 | margin-left: 0%; 524 | margin-right: 3%; 525 | background: #fafafa; 526 | border: 1px solid #c0c0c0; 527 | border-radius: 4px; 528 | margin-top: 2.375rem; 529 | padding: 0.75rem; 530 | } 531 | #new .new-test section:before, 532 | #new .new-test section:after { 533 | content: ''; 534 | display: table; 535 | } 536 | #new .new-test section:after { 537 | clear: both; 538 | } 539 | #new .new-test section:last-child { 540 | margin-right: 0%; 541 | } 542 | #new .new-test section h2 { 543 | font-size: 1.75rem; 544 | text-align: center; 545 | } 546 | #new .new-test section ul { 547 | margin: 0.875rem 0; 548 | } 549 | #new .new-test section ul li { 550 | list-style: disc; 551 | list-style-position: inside; 552 | } 553 | #new .new-test section div { 554 | text-align: center; 555 | } 556 | #new .new-test section div button { 557 | background: #00aaea; 558 | border: 2px solid #fff; 559 | border-radius: 6px; 560 | color: #fff; 561 | cursor: pointer; 562 | font-family: 'Montserrat', sans-serif; 563 | font-weight: bold; 564 | padding: 0.75rem 1.5rem; 565 | text-align: center; 566 | text-decoration: none; 567 | text-transform: uppercase; 568 | -webkit-transition: color 0.5s, background 0.5s; 569 | transition: color 0.5s, background 0.5s; 570 | } 571 | #new .new-test section div button:hover { 572 | background: #fff; 573 | border: 2px solid #00aaea; 574 | color: #00aaea; 575 | } 576 | #new .new-test section div button:active { 577 | background: #00aaea; 578 | border: 2px solid #fff; 579 | color: #fff; 580 | } 581 | #new .new-test section div button:disabled { 582 | background: #0099d3; 583 | border: 2px solid #fff; 584 | color: #fff; 585 | opacity: 0.4; 586 | } 587 | #new .tasks { 588 | margin-bottom: 2.375rem; 589 | } 590 | #new .tasks form { 591 | *zoom: 1; 592 | float: left; 593 | clear: none; 594 | text-align: inherit; 595 | width: 48.5%; 596 | margin-left: 0%; 597 | margin-right: 3%; 598 | } 599 | #new .tasks form:before, 600 | #new .tasks form:after { 601 | content: ''; 602 | display: table; 603 | } 604 | #new .tasks form:after { 605 | clear: both; 606 | } 607 | #new .tasks form:nth-child(2n) { 608 | margin-right: 0%; 609 | float: right; 610 | } 611 | #new .tasks form:nth-child(2n+1) { 612 | clear: both; 613 | } 614 | #new .tasks form ul { 615 | *zoom: 1; 616 | width: auto; 617 | max-width: 1440px; 618 | float: none; 619 | display: block; 620 | margin-right: auto; 621 | margin-left: auto; 622 | padding-left: 0; 623 | padding-right: 0; 624 | } 625 | #new .tasks form ul:before, 626 | #new .tasks form ul:after { 627 | content: ''; 628 | display: table; 629 | } 630 | #new .tasks form ul:after { 631 | clear: both; 632 | } 633 | #new .tasks form ul li:first-child { 634 | *zoom: 1; 635 | float: left; 636 | clear: none; 637 | text-align: inherit; 638 | width: 17.6%; 639 | margin-left: 0%; 640 | margin-right: 3%; 641 | } 642 | #new .tasks form ul li:first-child:before, 643 | #new .tasks form ul li:first-child:after { 644 | content: ''; 645 | display: table; 646 | } 647 | #new .tasks form ul li:first-child:after { 648 | clear: both; 649 | } 650 | #new .tasks form ul li:first-child:last-child { 651 | margin-right: 0%; 652 | } 653 | #new .tasks form ul li:nth-child(2) { 654 | *zoom: 1; 655 | float: left; 656 | clear: none; 657 | text-align: inherit; 658 | width: 38.2%; 659 | margin-left: 0%; 660 | margin-right: 3%; 661 | } 662 | #new .tasks form ul li:nth-child(2):before, 663 | #new .tasks form ul li:nth-child(2):after { 664 | content: ''; 665 | display: table; 666 | } 667 | #new .tasks form ul li:nth-child(2):after { 668 | clear: both; 669 | } 670 | #new .tasks form ul li:nth-child(2):last-child { 671 | margin-right: 0%; 672 | } 673 | #new .tasks form ul li:nth-child(3) { 674 | *zoom: 1; 675 | float: left; 676 | clear: none; 677 | text-align: inherit; 678 | width: 38.2%; 679 | margin-left: 0%; 680 | margin-right: 3%; 681 | } 682 | #new .tasks form ul li:nth-child(3):before, 683 | #new .tasks form ul li:nth-child(3):after { 684 | content: ''; 685 | display: table; 686 | } 687 | #new .tasks form ul li:nth-child(3):after { 688 | clear: both; 689 | } 690 | #new .tasks form ul li:nth-child(3):last-child { 691 | margin-right: 0%; 692 | } 693 | #new .tasks form ul li a { 694 | color: #c33434; 695 | font-weight: bold; 696 | text-decoration: underline; 697 | margin: 0 0.375rem; 698 | } 699 | #new .tasks form button { 700 | background: #00aaea; 701 | border: 2px solid #fff; 702 | border-radius: 6px; 703 | color: #fff; 704 | cursor: pointer; 705 | font-family: 'Montserrat', sans-serif; 706 | font-weight: bold; 707 | padding: 0.75rem 1.5rem; 708 | text-align: center; 709 | text-decoration: none; 710 | text-transform: uppercase; 711 | -webkit-transition: color 0.5s, background 0.5s; 712 | transition: color 0.5s, background 0.5s; 713 | padding: 0.1875rem 0.375rem; 714 | border: 2px solid #00aaea; 715 | border-radius: 2px; 716 | } 717 | #new .tasks form button:hover { 718 | background: #fff; 719 | border: 2px solid #00aaea; 720 | color: #00aaea; 721 | } 722 | #new .tasks form button:active { 723 | background: #00aaea; 724 | border: 2px solid #fff; 725 | color: #fff; 726 | } 727 | #new .tasks form button:disabled { 728 | background: #0099d3; 729 | border: 2px solid #fff; 730 | color: #fff; 731 | opacity: 0.4; 732 | } 733 | #feedback { 734 | margin-top: 2.375rem; 735 | } 736 | #feedback table { 737 | border: 1px solid #c0c0c0; 738 | font-size: 1.125rem; 739 | font-weight: bold; 740 | text-align: left; 741 | width: 100%; 742 | } 743 | #feedback table tr:first-child { 744 | background: #959595; 745 | color: #fff; 746 | } 747 | #feedback table tr.odd { 748 | background: #fff; 749 | } 750 | #feedback table tr.even { 751 | background: #fafafa; 752 | } 753 | #feedback table td, 754 | #feedback table th { 755 | padding: 0.375rem 0 0.375rem 0.375rem; 756 | } 757 | #all-tests { 758 | margin-top: 2.375rem; 759 | } 760 | #all-tests .test { 761 | *zoom: 1; 762 | float: left; 763 | clear: none; 764 | text-align: inherit; 765 | width: 31.3333333333333%; 766 | margin-left: 0%; 767 | margin-right: 3%; 768 | background: #fafafa; 769 | border: 1px solid #c0c0c0; 770 | border-radius: 4px; 771 | padding: 0.75rem 1.5rem; 772 | margin-bottom: 1.5rem; 773 | } 774 | #all-tests .test:before, 775 | #all-tests .test:after { 776 | content: ''; 777 | display: table; 778 | } 779 | #all-tests .test:after { 780 | clear: both; 781 | } 782 | #all-tests .test:nth-child(3n) { 783 | margin-right: 0%; 784 | float: right; 785 | } 786 | #all-tests .test:nth-child(3n+1) { 787 | clear: both; 788 | } 789 | #all-tests .test h3 { 790 | text-transform: uppercase; 791 | } 792 | #all-tests .test .buttons { 793 | float: right; 794 | } 795 | #all-tests .test .buttons a { 796 | font-weight: bold; 797 | color: #00aaea; 798 | text-decoration: underline; 799 | margin: 0 0.375rem; 800 | } 801 | #all-tests .test .buttons a:nth-child(1) { 802 | color: #099; 803 | } 804 | #all-tests .test .buttons a:nth-child(2) { 805 | color: #00aaea; 806 | } 807 | #all-tests .test .buttons a:nth-child(3) { 808 | color: #c33434; 809 | } 810 | -------------------------------------------------------------------------------- /static/views/all_tests.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |

View all my tests

4 |
5 |
6 | 7 |
8 |
9 |
10 |

{{test.name}}

11 |
12 | Start 13 | Edit 14 | Delete 15 |
16 |
17 |
18 |
19 | -------------------------------------------------------------------------------- /static/views/copy of start_test.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |

{{test.name}}

4 |
5 |
6 | 7 |
8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 |
MethodPathRequestsSuccessFailuresMinMeanMaxRps
[{{task.method}}]{{task.path}}{{task.requests}}{{task.success}}{{task.failures}}{{(task.min / 1000000).toFixed(2)}} ms{{(task.mean / 1000000).toFixed(2)}} ms{{(task.max / 1000000).toFixed(2)}} ms{{task.rps}} / s
 Total{{total.requests}}{{total.success}}{{total.failures}}{{(total.min / 1000000).toFixed(2)}} ms{{(total.mean / 1000000).toFixed(2)}} ms{{(total.max / 1000000).toFixed(2)}} ms{{total.rps}} / s
47 |
48 |
49 | -------------------------------------------------------------------------------- /static/views/home.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |

A load/stress testing tool without... stress

4 | Try me !Contribute 5 |
6 |
7 | 8 |
9 |
10 |

How it works

11 |
    12 |
  • 13 | 14 | 15 | 16 |

    Create a new test

    17 |
  • 18 |
  • 19 | 20 | 21 | 22 |

    Add a list of tasks to run

    23 |
  • 24 |
  • 25 | 26 | 27 | 28 |

    Monitor the requests in real-time

    29 |
  • 30 |
31 |
32 |
33 | 34 |
35 |
36 | Gopherling is developed by Frostwind for the Gophergala. 37 |
38 |
39 | -------------------------------------------------------------------------------- /static/views/new_test.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |

Add a new test

4 |
5 |
6 | 7 |
8 |
9 |
10 |
11 | 12 | 13 |
14 |
15 | 16 | 17 |
18 |
19 | 20 | 21 |
22 |
23 | 24 | 25 |
26 |
27 | 28 | 29 |
30 |
31 |
32 |

How to?

33 |
    34 |
  • Start by configuring your test setting, and your first task
  • 35 |
  • Click on the "Add Task" button if you need to add more tasks
  • 36 |
  • Once finished you can either save your test for later use, and click on the "Save & Run" button to start it immediatly
  • 37 |
38 |
39 | 40 | 41 | 42 |
43 |
44 |
45 |
46 |
47 |
48 |
    49 |
  • 50 | 51 | 57 |
  • 58 |
  • 59 | 60 | 61 |
  • 62 |
  • 63 | 64 | 65 |
  • 66 |
67 |
68 |
69 |

70 | 71 | 72 |
73 |
74 |

Headers

75 | 76 |
77 |
78 |
    79 |
  • 80 |
    81 | Remove 82 |
  • 83 |
  • 84 | 85 | 86 |
  • 87 |
  • 88 | 89 | 90 |
  • 91 |
92 |
93 |
94 |

Remove this task

95 | 96 |
97 |
98 |
99 | 100 |
101 | -------------------------------------------------------------------------------- /static/views/start_test.html: -------------------------------------------------------------------------------- 1 |
2 |
3 |

{{test.name}}

4 |
5 |
6 | 7 |
8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 |
MethodPathRequestsSuccessFailuresMinMeanMaxRps
[{{task.method}}]{{task.path}}{{task.requests}}{{task.success}}{{task.failures}}{{(task.min / 1000000).toFixed(2)}} ms{{(task.mean / 1000000).toFixed(2)}} ms{{(task.max / 1000000).toFixed(2)}} ms{{task.rps}} / s
 Total{{total.requests}}{{total.success}}{{total.failures}}{{(total.min / 1000000).toFixed(2)}} ms{{(total.mean / 1000000).toFixed(2)}} ms{{(total.max / 1000000).toFixed(2)}} ms{{total.rps}} / s
47 |
48 |
49 | --------------------------------------------------------------------------------