Creating a complete authentication flow using context-api. (Step-by-step)
This flow can be replicated to React-JS (Web)
npx react-native init reactNativeAuth --template react-native-template-typescript
| @Entity | |
| public class Parent implements Serializable { | |
| @Id | |
| @GeneratedValue(strategy = GenerationType.AUTO) | |
| private Long id; | |
| @OneToMany(mappedBy = "parent", cascade = CascadeType.ALL, orphanRemoval = true) | |
| private Set<Child> children = new HashSet<>(); | |
| ... |
| # Visualizing branch topology in git on the commandline | |
| git log --graph --oneline --full-history --all | |
| git log --graph --full-history --all --pretty=format:"%h%x09%d%x20%s" | |
| # With colors in Bash: | |
| git log --graph --full-history --all --color --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s" |
| sequence.reduce((previusPromise, nextVal) => { | |
| return previusPromise.then(() => { | |
| return this.functionThatReturnAPromise(nextVal); | |
| }); | |
| }, Promise.resolve()); |
Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/
sudo amazon-linux-extras install docker
sudo service docker start
sudo usermod -a -G docker ec2-user| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.projectboard</groupId> | |
| <artifactId>projectboard</artifactId> | |
| <version>1.0-SNAPSHOT</version> | |
| <packaging>war</packaging> | |
| <name>Project Board</name> | |
| <description>Project management dashboard.</description> |
| TARGET = main | |
| SRC = src | |
| INC = inc | |
| BIN = bin | |
| SOURCE = $(wildcard $(SRC)/*.c) | |
| OBJECT = $(patsubst %, $(BIN)/%, $(notdir $(SOURCE:.c=.o))) | |
| CC=gcc |
| <persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence | |
| http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd" | |
| version="2.1"> | |
| <persistence-unit name="persistenceUnitName" transaction-type="RESOURCE_LOCAL"> | |
| <properties> | |
| <property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" /> <!-- DB Driver --> |
| ./jboss-cli.sh | |
| embed-server --std-out=echo --server-config=standalone.xml | |
| module add --name=org.postgres --resources=/tmp/postgresql-42.1.1.jar --dependencies=javax.api,javax.transaction.api | |
| exit |