Skip to content

Instantly share code, notes, and snippets.

C POST
R GET
U PUT
D DELETE
  • GET /api/v1/properties
_id img city size price
{
"users": [
{ "id": 1, "avatar": "/img/1.jpg", "isBlocked": false, "email": "phoebe@inbox.lv", "username": "Phoebe" },
{ "id": 2, "avatar": "/img/2.jpg", "isBlocked": true, "email": "artemis@gmail.com", "username": "Artemis" },
{ "id": 3, "avatar": "/img/3.jpg", "isBlocked": true, "email": "ares@gmail.com", "username": "Ares" },
{ "id": 4, "avatar": "/img/4.jpg", "isBlocked": false, "email": "aphrodite@xx.com", "username": "Aphrodite" }
],
"messages": [
{ "id": 1, "message": "Hello adskjfhsjdfh" },
{ "id": 2, "message": "Hello!" },
@vsnai
vsnai / steps.md
Last active February 5, 2021 18:01
npx create-next-app jaunais-projekts
cd jaunais-projekts

npm install tailwindcss@latest postcss@latest autoprefixer@latest

npx tailwindcss init -p

// tailwind.config.js
purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
@vsnai
vsnai / prov.sh
Last active December 1, 2019 08:15
#!/bin/bash
if [ $# -ne 5 ]; then
echo ". prov.sh username password appname your_domain.com your_email@gmail.com"
exit 1
fi
username="$1"
password="$2"
app="$3"
ssh root@your_server_ip
  > yes

Add repositories

add-apt-repository -y ppa:nginx/development
add-apt-repository -y ppa:ondrej/php
add-apt-repository -y ppa:certbot/certbot