Skip to content

Instantly share code, notes, and snippets.

View vidomarkas's full-sized avatar

Viktoras Domarkas vidomarkas

View GitHub Profile
@vidomarkas
vidomarkas / mysql_cheat_sheet.md
Last active August 21, 2022 14:19 — forked from bradtraversy/mysql_cheat_sheet.md
MySQL Cheat Sheet

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

const express = require("express");
const router = express.Router();
const Ad = require("../models/Ad");
// Route POST api/getgroup
// Description Search all ads with criteria
// Access Public
router.post("/", async (req, res) => {
const type = req.body.type;
console.log("type", type);