Let $R$ be a commutative ring. By Lazard's Theorem an $R$-module $M$ is flat if and only if it's directed colimit of finitely generated free modules.
Let $S\subseteq R$ be a multiplicative system of $R$. It's well-know that $S^{-1}R$ is a flat $R$-module. By Lazard's theorem, $S^{-1}R$ is then a directed colimit of finitely generated free $R$-modules.
There exists a simple and explicit directed system of finitely generated free $R$-modules with colimit $S^{-1}R$?
Here are some concrete examples that illustrate what is going on. Say $S$ is generated by one element $s$. Then $S^{-1}R$ is just the colimit of the sequence $$R\to R\to R\to R\to\dots$$ where all the maps are multiplication by $s$. Explicitly, for instance, if $R=\mathbb{Z}$ and $s=2$, you get the sequence $$\mathbb{Z}\stackrel{2}{\to}\mathbb{Z}\stackrel{2}{\to}\mathbb{Z}\stackrel{2}{\to}\mathbb{Z}\stackrel{2}{\to}\dots$$ which is isomorphic to the sequence of inclusions $$\mathbb{Z}\to\frac{1}{2}\mathbb{Z}\to\frac{1}{4}\mathbb{Z}\to\frac{1}{8}\mathbb{Z}\to\dots$$ whose colimit is just their union $\mathbb{Z}[1/2]\subset\mathbb{Q}$, which is the localization of $\mathbb{Z}$ with respect to the powers of $2$.
More generally, if $S$ is countable, then you construct $S^{-1}R$ as the colimit of a sequence $$R\to R\to R\to R\to\dots$$ where each map is multiplication by some element of $S$ and each element of $S$ appears infinitely many times in the sequence.
If $S$ is uncountable, you can't just take a sequential colimit, and so things get hairier. The idea is still the same, though: you're just taking a colimit of copies of $R$ where you get to multiply by the elements of $S$ as many times as you like. One way to do this is explained nicely in Mathein Boulomenos's answer. Another way to do it is to take your index set to be the collection of finite multisets of elements of $S$ (that is, finite collections of elements of $S$ where you can repeat the same element multiple times). Each object in the diagram is a copy of $R$, and the morphism $R\to R$ correspond to adding a new element $s$ to your finite multiset is multiplication by $s$. This diagram maps to $S^{-1}R$ by sending the copy of $R$ corresponding to a multiset $F$ to the fractions in $S^{-1}R$ whose denominator is the product of all the elements of $F$.
(In fact, this last construction works even if $S$ is not multiplicatively closed, and gives you the localization with respect to the multiplicatively closed set generated by $S$.)