<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Pierre Burgy on Medium]]></title>
        <description><![CDATA[Stories by Pierre Burgy on Medium]]></description>
        <link>https://medium.com/@pierreburgy?source=rss-4e20e25e9066------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*CLQLzEWaQjvv21QU.</url>
            <title>Stories by Pierre Burgy on Medium</title>
            <link>https://medium.com/@pierreburgy?source=rss-4e20e25e9066------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 22:38:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pierreburgy/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ Cooking a Deliveroo clone with Nuxt (Vue.js), GraphQL, Strapi and Stripe]]></title>
            <link>https://medium.com/strapi/cooking-a-deliveroo-clone-with-nuxt-vue-js-graphql-strapi-and-stripe-ebeb49320993?source=rss-4e20e25e9066------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebeb49320993</guid>
            <category><![CDATA[nuxtjs]]></category>
            <category><![CDATA[strapi]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Pierre Burgy]]></dc:creator>
            <pubDate>Tue, 03 Jul 2018 15:49:09 GMT</pubDate>
            <atom:updated>2018-10-19T13:03:22.412Z</atom:updated>
            <content:encoded><![CDATA[<h4>🏗️ Setup (part 1/7)</h4><p>Get ready to develop a <strong>Deliveroo clone, using amazing technologies: </strong><a href="https://nuxtjs.org/"><strong>Nuxt</strong></a><strong> (</strong><a href="https://vuejs.org/"><strong>Vuejs</strong></a><strong>), </strong><a href="https://graphql.org/"><strong>GraphQL</strong></a><strong>, </strong><a href="http://stripe.com/"><strong>Stripe</strong></a><strong> and </strong><a href="https://strapi.io/"><strong>Strapi</strong></a>! From signup to order, you are going to let users discover restaurants, dishes and select their happy meal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uUZo-5EDdU-jxeGC.png" /></figure><p>The <strong>demo of the final result</strong> should make you hungry:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*_bG1WhFRXg4JNwuA.gif" /></figure><p><em>Note: the </em><strong><em>source code</em></strong><em> is </em><strong><em>available on GitHub</em></strong><em>: </em><a href="https://github.com/strapi/strapi-examples/tree/master/nuxt-strapi-deliveroo-clone-tutorial"><em>https://github.com/strapi/strapi-examples/tree/master/nuxt-strapi-deliveroo-clone-tutorial</em></a><em>.</em></p><h4>Nuxt</h4><p><a href="https://nuxtjs.org/">Nuxt.js</a> is an amazing framework for creating <strong>apps with Vue.js</strong>. Designed to build production ready applications, it provides a solid project structure built with Webpack and Babel.</p><p><a href="https://vuejs.org/">Vue.js</a> is one of the most famous <strong>front-end framework</strong>, with more than 100K stars (🙈) on GitHub. Created in 2014 by <a href="https://twitter.com/youyuxi">Evan You</a>, it quickly became a reference thanks to three main advantages: extremely simple yet <strong>powerful API</strong>, <strong>small library size</strong>, and <strong>great performances</strong>.</p><h4>GraphQL</h4><p>REST is the convention powering 99% of the live APIs. Succeeding to SOAP, it quickly became the de-facto convention because of its simplicity.</p><p>In 2015, Facebook published <a href="https://graphql.org/">GraphQL</a>: a <strong>powerful query language to request APIs</strong>. Since its publication, it kept growing and have been adopted by giants, such as GitHub, Twitter and Yelp.</p><h4>Strapi</h4><p><a href="https://strapi.io/">Strapi</a> is the <em>most advanced </em><strong><em>Node.js API Content Management Framework</em></strong>. Halfway between a <a href="https://strapi.io/overview">Node.js Framework and a Headless CMS</a>, it saves weeks of API development time.</p><p>With its extensible plugin system, it provides a large set of built-in features: Admin Panel, Authentication &amp; Permissions management, Content Management, API Generator, etc. Unlike online CMS, <strong>Strapi is 100% open-source</strong> (take a look at the <a href="https://github.com/strapi/strapi">GitHub repository</a>), which means:</p><ul><li><strong>Strapi is completely free</strong>.</li><li>You can <strong>host it on your own servers</strong>, so you own the data.</li><li>It is entirely <strong>customisable and extensible</strong>, thanks to the plugin system.</li></ul><h4>Stripe</h4><p>Stripe is an <strong>online payement processor</strong> which makes developers’ life much easier when dealing with payments. In this tutorial, we will use it to proceed orders.</p><p>Looking forward forward to cook this app? Let’s <strong>get started</strong>!</p><h3>Table of contents</h3><h3>🏗️ Setup</h3><h3>Nuxt</h3><p>First of all, you are going to setup the Nuxt project. To do so, install Vue CLI:</p><pre>npm install -g vue-cli</pre><p>Create a directory named deliveroo-clone-tutorial:</p><pre>mkdir deliveroo-clone-tutorial</pre><p>Then, in this new folder, generate a new Nuxt project:</p><pre>cd deliveroo-clone-tutorial<br>vue init nuxt-community/starter-template client</pre><p>Press enter for every question.</p><p>Install the node modules:</p><pre>cd client npm install</pre><p>At this point, you should see a list of generated files in the new client folder. To know more about this structure, take a look at the <a href="https://nuxtjs.org/guide/directory-structure">Nuxt directory structure documentation</a>.</p><p>Finally, start the app from the client directory:</p><pre>npm run dev</pre><p>Here you are! Open <a href="http://localhost:3000/">http://localhost:3000</a> to discover your brand new app.</p><h4><strong>Adding Bootstrap</strong></h4><p>To get a better design, we are going to add Bootstrap. To do so, update the installed dependencies:</p><pre>npm i bootstrap-vue</pre><p>Add bootstrap-vue/nuxt to modules section of nuxt.config.js:</p><p><em>Path: </em><em>nuxt.config.js</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bb34ca51ad56772ba4ed360856a51cbf/href">https://medium.com/media/bb34ca51ad56772ba4ed360856a51cbf/href</a></iframe><h4><strong>Creating the Header component</strong></h4><p>In the same time, we are going to create our first component that we will reuse across the project.</p><p><em>Path: </em><em>components/Header.vue</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/439a771925565041ccafd20e03a93e8b/href">https://medium.com/media/439a771925565041ccafd20e03a93e8b/href</a></iframe><p>Use it in the default layout remove its style:</p><p><em>Path: </em><em>layouts/default.vue</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6dd0ae2caf2a5dda06a2fac6dd50c50c/href">https://medium.com/media/6dd0ae2caf2a5dda06a2fac6dd50c50c/href</a></iframe><p>Clean the homepage content and remove its style:</p><p><em>Path: </em><em>pages/index.vue</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5370accbd785c75a749d06195e3a4d40/href">https://medium.com/media/5370accbd785c75a749d06195e3a4d40/href</a></iframe><p>Restart the server to see your changes at <a href="http://localhost:3000/">http://localhost:3000</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ovYpRx8L_lw7Epbm.png" /></figure><h3>Strapi</h3><p>Having a frontend is good, but your app obviously needs a backend to manage users, restaurants, dishes and orders. To make the magic happen, let’s create a Strapi API.</p><h4>Install Strapi</h4><p><em>Requirements: please make sure to use </em><a href="https://nodejs.org/en/download"><em>Node 9</em></a><em> (or more) and have either </em><a href="https://docs.mongodb.com/manual/installation/"><em>MongoDB</em></a><em>, Postgres or MySQL installed and running on your machine.</em></p><p>Install Strapi using npm:</p><pre>npm i strapi@alpha -g</pre><p><em>Note: Strapi v3 is still an alpha version, but it will be fine for this tutorial.</em></p><p>Generate a Strapi project</p><p>Scaffold your API inside the deliveroo-clone-tutorial through a single command line:</p><pre>cd deliveroo-clone-tutorial<br>strapi new server</pre><p>The CLI will ask you to choose your database: select MongoDB, Postgres or MySQL. Then, fill the database information in. The default values should work if you correctly installed the database system on your machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*1Z2gGa6Q1bUbIeexoEtYsQ.png" /></figure><h4>Start the server</h4><p>Launch the Node.js server:</p><pre>cd server strapi start</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/0*QUDGzjwcjlADPr7S.png" /></figure><p>Starting now, you should be able to visit the admin panel of your project: <a href="http://localhost:1337/admin">http://localhost:1337/admin</a>.</p><h4>Create your first User</h4><p>Add your first user from the <a href="http://localhost:1337/admin/plugins/users-permissions/auth/register">registration page</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*BPbREUjLA3ZIl4iP.gif" /></figure><p>Good job, you successfully setup both Nuxt and Strapi projects! 🎉</p><p>🏠 In the next section, you will learn how to display the <strong>list of restaurants</strong>: <a href="https://blog.strapi.io/cooking-a-deliveroo-clone-with-nuxt-vue-js-graphql-strapi-and-stripe-restaurants-list-part-2-7">https://blog.strapi.io/cooking-a-deliveroo-clone-with-nuxt-vue-js-graphql-strapi-and-stripe-restaurants-list-part-2-7</a>.</p><p><em>Originally published at </em><a href="https://blog.strapi.io/cooking-a-deliveroo-clone-with-nuxt-vue-js-graphql-strapi-and-stripe-setup-part-1-7/"><em>blog.strapi.io</em></a><em> on July 3, 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebeb49320993" width="1" height="1" alt=""><hr><p><a href="https://medium.com/strapi/cooking-a-deliveroo-clone-with-nuxt-vue-js-graphql-strapi-and-stripe-ebeb49320993">🍝 Cooking a Deliveroo clone with Nuxt (Vue.js), GraphQL, Strapi and Stripe</a> was originally published in <a href="https://medium.com/strapi">Strapi</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>