C POST
R GET
U PUT
D DELETE
- GET /api/v1/properties
_id img city size price
C POST
R GET
U PUT
D DELETE
_id img city size price
{ | |
"users": [ | |
{ "id": 1, "avatar": "/img/1.jpg", "isBlocked": false, "email": "[email protected]", "username": "Phoebe" }, | |
{ "id": 2, "avatar": "/img/2.jpg", "isBlocked": true, "email": "[email protected]", "username": "Artemis" }, | |
{ "id": 3, "avatar": "/img/3.jpg", "isBlocked": true, "email": "[email protected]", "username": "Ares" }, | |
{ "id": 4, "avatar": "/img/4.jpg", "isBlocked": false, "email": "[email protected]", "username": "Aphrodite" } | |
], | |
"messages": [ | |
{ "id": 1, "message": "Hello adskjfhsjdfh" }, | |
{ "id": 2, "message": "Hello!" }, |
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}'],
#!/bin/bash | |
if [ $# -ne 5 ]; then | |
echo ". prov.sh username password appname your_domain.com [email protected]" | |
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