Proof (existence of field of fractions)
This is the same construction of $\Q$ from $\Z$.
Define a set $$ \begin{align*} S = \sb{(a,b)\in R\times R}{b\neq 0} \end{align*} $$ and an equivalence relation $\sim$ on $S$ $$ \begin{align*} (a,b) \sim (c,d) \iff ad = bc. \end{align*} $$
We shall check $\sim$ is indeed an equivalence relation. Reflexivity and symmetry are clear. To check transitivity, suppose $(a,b) \sim (c,d)$ and $(c,d) \sim (e,f)$. Then $$ \begin{align*} &ad = bc, \qquad cf = de \\ \implies& adf = bcf = bde \\ \implies& (af - be) d = 0 \\ \implies& af-be = 0 \quad \text{or} \quad d=0 \end{align*} $$ as $R$ is an integral domain. But we assume $d\neq 0$, so $af-be=0$ and thus $(a,b) \sim (e,f)$.
Now define $$ \begin{align*} F = S/\sim \end{align*} $$ and write $a/b = [(a,b)]$ as the equivalence class. Equip it with operations $$ \begin{align*} \frac{a}{b} + \frac{c}{d} = \frac{ad+bc}{bd}, \qquad \frac{a}{b}\cdot \frac{c}{d} = \frac{ac}{bd}. \end{align*} $$ Check that these are well-defined and $F$ is a ring with $0_F = 0/1$ and $1_F = 1/1$.
To see $F$ is a field, suppose $a/b \neq 0_F$. Then $a/b \neq 0/1$ so $a\cdot 1\neq b\cdot 0$ and thus $a\neq 0$. Therefore $b/a\in F$ and $b/a\cdot a/b = 1$. Hence $a/b$ is a unit.
To see $R$ is (isomorphic to) a subring of $F$, construct the ring homomorphism $i: R\to F$ sending $r\mapsto r/1$. The kernel is $\sb{r\in R}{r/1 = 0_F} = \set{0}$ and so $i$ is injective. Hence by the first isomorphism theorem, $R \isom \im(i)\leq F$.
Finally, for all $\frac{a}{b}\in F$, $\frac{a}{b} = \frac{a}{1}\cdot \frac{1}{b} = \frac{a}{1}(\frac{b}{1})\inv = ab\inv$.