Skip to content

Commit

Permalink
Merge pull request #6 from Build-Week-Med-Cabinet/Louie-SearchFormFinish
Browse files Browse the repository at this point in the history
Louie search form finish
  • Loading branch information
alexisjcarr authored Sep 24, 2019
2 parents 747ced4 + ebb9c8e commit 84887b0
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 12 deletions.
Binary file modified database/users.db3
Binary file not shown.
71 changes: 59 additions & 12 deletions search/searchRouter.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,62 @@
const axios = require('axios');
const router = require('express').Router();
const axios = require("axios");
const router = require("express").Router();

router.get('/', async (req, res) => {
const {Strain, Type, Rating, Effects, Flavor, Description} = req.body;
console.log(Strain + '\n');
console.log(Type + '\n');
console.log(Rating + '\n');
console.log(Effects + '\n');
console.log(Flavor + '\n');
console.log(Description + '\n');
res.send('GOT YOUR QUERY!')
const dummyData = [
{
Strain: "Ghost-Ship",
Type: "indica",
Rating: 4.0,
Effects: "Relaxed,Happy,Sleepy,Euphoric,Tingly",
Flavor: "Earthy,Pungent,Skunk",
Description:
"Ghost Ship is an indica-dominant cross between Purple Kush Starship and Gupta Kush created by Colorado Seed Inc. Pervasive relaxation cascades over the body, but the buzz is not lethargic. With a very strong aroma that can only be described as \u201cKushy,\u201d this strain soothes aches and pains while lending heady introspection. Think hard and rest easy. This flower is a solid option for muscle relaxation and stress relief. \u00a0"
},
{
Strain: "Sfv-Og-Kush",
Type: "indica",
Rating: 4.5,
Effects: "Relaxed,Happy,Euphoric,Uplifted,Sleepy",
Flavor: "Pine,Earthy,Lemon",
Description:
"SFV OG Kush, not to be confused with its precursor SFV OG, is an indica-dominant strain bred from OG Kush genetics by The Cali Connection. By crossing an SFV OG clone with an Afghani father and selecting for favorable traits over several generations, the indica-heavy SFV OG Kush was born. You can smell the OG genes in this one, as its odor is commonly described as a strong lemon cleaner smell intermixed with pine."
},
{
Strain: "Blue-Boy",
Type: "hybrid",
Rating: 4.1,
Effects: "Happy,Relaxed,Giggly,Euphoric,Aroused",
Flavor: "Earthy,Pungent,Flowery",
Description:
"Blue Boy is a cross of popular favorites Blue Dream and Northern Lights #5 that will give you anything but the blues. Originally from Washington state, this sativa-dominant hybrid provides focused, cerebral effects that make it a great choice for daytime use. Its plants are bushy and grow large, and the flowers tend to be large and on the looser, leafier side. Blue Boy is a potent strain with THC levels that often test over 20%."
},
{
Strain: "Fruity-Pebbles",
Type: "hybrid",
Rating: 4.4,
Effects: "Happy,Relaxed,Uplifted,Euphoric,Giggly",
Flavor: "Sweet,Tropical,Berry",
Description:
"Fruity Pebbles (AKA Fruity Pebbles OG) by Alien Genetics was a limited-time offering from the breeder. This sweet hybrid takes genetics from Green Ribbon, Granddaddy Purple, and Tahoe Alien\u00a0to create a tropical, berry flavor reminiscent of the cereal. The euphoric effects will keep you happy when you\u2019re stressed and help you catch some sleep when faced with insomnia. Sit back, relax, and pour yourself a bowl of Fruity Pebbles!"
},
{
Strain: "Six-Shooter",
Type: "hybrid",
Rating: 4.6,
Effects: "Creative,Euphoric,Happy,Uplifted,Focused",
Flavor: "Sweet,Skunk,Citrus",
Description:
"Six Shooter by Royal Dutch Genetics is a six-way cross that comes out as a sativa-dominant hybrid with effects as diverse as its lineage. By crossing Haze, Super Skunk, Northern Lights, Brazilian, Royal Dutch, and Trainwreck, this strain achieves a symphony of effects that lean ever so gently toward the stimulating side, complementing the latent indica effect nestled deep between the\u00a0calyxes of this flower. Its effects can inspire appetite, subdue anxiety and mild physical pain, and offer a pleasant euphoria that is quick to arrive and slow to fade"
}
];

router.get("/", async (req, res) => {
try {
const { searchQuery } = req.body;
const resultStrains = dummyData;
res.send(resultStrains);
} catch (err) {
console.log(err.message);
}
});

module.exports = router;
module.exports = router;

0 comments on commit 84887b0

Please sign in to comment.