####A basic app practicing Unit Testing, Functional Testing, and AJAX calls Drupal 7. 12/16/2016
This web application takes user inputted sequence of a DNA strand and generates the complementary strand sequence to make a double-stranded DNA. It correctly pairs nucleotides A-T, C-G, and vice versa. The second part of this page demonstrates AJAX calls to an existing content type and displays data without going to a different page.
-
Install and initiate MAMP or similar solution stack of your preference if your local machine does not have them already
-
Clone the project directory from https://github.com/anandangalig/DNA.git
-
Initiate MAMP in the highest level of the cloned directory
-
Use 'dna' as name and password for database set-up purposes
-
Open PHPMyAdmin, create a new database, and import the latest zipped .sql file from the db-backup folder
-
Go to localhost:8888 in your favorite browser to use the application
-
To run the tests:
- Make sure Testing and DNA modules are enabled on the Module tab of the Admin menu
- Go to Configuration tab, click on Testing under Development panel
- Scroll down to 'Independent Project Tests' section and check mark it
- Click Run tests
-
Input: a
-
Output: A-T
-
Input: a,c
-
Output: A-T, C-G
-
Input: a,t,c,G
-
Output: A-T, T-C, C-G, G-C
-
Input: a c g
-
Output: A-T, C-G, G-C
-
Input: k
-
Output: Error message: "DNA has only 4 acceptable nucleotides: A, T, C, and G."
No bugs known. If found, please bring it to my attention via e-mail.
Please feel free to contact us at: anandangalig@gmail.com
- Drupal 7
- PHP
- AJAX
- SimpleTest
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copyright (c) 2016 Anand Angalig