Last major update: 25.08.2020
- Что такое авторизация/аутентификация
- Где хранить токены
- Как ставить куки ?
- Процесс логина
- Процесс рефреш токенов
- Кража токенов/Механизм контроля токенов
import { ObjectType, Field } from "@nestjs/graphql"; | |
@ObjectType() | |
export class PageInfo { | |
@Field({ nullable: true }) | |
startCursor: string; | |
@Field({ nullable: true }) | |
endCursor: string; |
'use strict'; | |
const path = require('path'); | |
module.exports = { | |
context: path.resolve(__dirname, 'src'), | |
entry: { | |
bundle: './app.js', | |
}, | |
output: { |
The standard names for indexes in PostgreSQL are:
{tablename}_{columnname(s)}_{suffix}
where the suffix is one of the following:
pkey
for a Primary Key constraint;key
for a Unique constraint;excl
for an Exclusion constraint;idx
for any other kind of index;
FROM node:13-alpine | |
RUN mkdir -p /readk.it | |
WORKDIR /readk.it | |
COPY package.json . | |
RUN apk update \ | |
&& apk add --no-cache \ | |
python \ | |
python-dev \ | |
ruby \ |
git config --global url."https://github.com/".insteadOf [email protected]: | |
git config --global url."https://".insteadOf git:// |
docker images | grep -v REPOSITORY | awk '{print $1}' | xargs -L1 docker pull |
const express = require("express"); | |
const router = express.Router(); | |
const User = require("../models/user"); | |
const AWS = require("aws-sdk"); | |
AWS.config.update({ | |
accessKeyId: process.env.accessKeyId, | |
secretAccessKey: process.env.secretAccessKey, | |
region: "us-east-1" | |
}); |
Feel free to contact me at [email protected] or tweet at me @statisticsftw
This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!
It assumes some knowledge of AWS.