<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Elijah Lopez</title>
    <description>The latest articles on DEV Community by Elijah Lopez (@elibroftw).</description>
    <link>https://dev.to/elibroftw</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F122278%2F2bb872e9-a3b5-4828-9084-e3e5d0c14b88.png</url>
      <title>DEV Community: Elijah Lopez</title>
      <link>https://dev.to/elibroftw</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/elibroftw"/>
    <language>en</language>
    <item>
      <title>Lenerva.com - Ecommerce with Monero Support</title>
      <dc:creator>Elijah Lopez</dc:creator>
      <pubDate>Fri, 14 Jan 2022 05:26:53 +0000</pubDate>
      <link>https://dev.to/elibroftw/mongodb-submission-post-placeholder-title-o0a</link>
      <guid>https://dev.to/elibroftw/mongodb-submission-post-placeholder-title-o0a</guid>
      <description>&lt;h3&gt;
  
  
  Overview of My Submission
&lt;/h3&gt;

&lt;p&gt;I made the first every Javascript-free ecommerce store, with a dark theme by default, credit card processing via Stripe checkouts, and can process Monero (a crypto).&lt;br&gt;
I've also integrated it with Printify AND custom items. This means that I can sell my own software as well as sell shirt designs mad e in printify.&lt;/p&gt;

&lt;p&gt;Furthermore, I have made use of multiprocessing and IPC to avoid needing an MQ or a broker. The pros of this are that I need less dependencies, a shorter workflow and I could develop the code on Windows without requiring to use WSL. &lt;/p&gt;

&lt;p&gt;The backend is Flask and I extensively used jinja2, html, and CSS to provide a wicked dynamic UX (checkout, snackbar notification, multi-currency prices).&lt;/p&gt;

&lt;p&gt;It uses mongoDB clusters to host user data (site admin verification for now), custom products, and order data.&lt;/p&gt;
&lt;h3&gt;
  
  
  Submission Category:
&lt;/h3&gt;

&lt;p&gt;E-Commerce Creation using serverless clusters.&lt;/p&gt;
&lt;h3&gt;
  
  
  Link to Code
&lt;/h3&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--566lAguM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/LeNerva"&gt;
        LeNerva
      &lt;/a&gt; / &lt;a href="https://github.com/LeNerva/lenerva.com"&gt;
        lenerva.com
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;h1&gt;
lenerva.com Source Code&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;Ecommerce
&lt;ul&gt;
&lt;li&gt;Monero processing&lt;/li&gt;
&lt;li&gt;Credit-card processing&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Future&lt;/em&gt; Interac processing&lt;/li&gt;
&lt;li&gt;Printify (drop shipping)&lt;/li&gt;
&lt;li&gt;Extendable Multi-Pricing UI
&lt;ul&gt;
&lt;li&gt;USD and CAD&lt;/li&gt;
&lt;li&gt;Can be extended to support currencies found in&lt;/li&gt;
&lt;li&gt;Sets default currency based on IP&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;MongoDB Atlas/Clusters&lt;/li&gt;
&lt;li&gt;Emailing
&lt;ul&gt;
&lt;li&gt;Email order confirmations&lt;/li&gt;
&lt;li&gt;Email possible exceptions to developer&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;JavaScript-free&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Future&lt;/em&gt;: Runs on TOR&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
Requirements&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Python 3.10.1+&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;%SERVER_NUM%&lt;/code&gt; &amp;gt;= 1&lt;/li&gt;
&lt;li&gt;Monero (not optional at the moment)
&lt;ul&gt;
&lt;li&gt;Monero binaries
&lt;ul&gt;
&lt;li&gt;Daemon (pruned in production)&lt;/li&gt;
&lt;li&gt;RPC Wallet&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Wallet files
&lt;ul&gt;
&lt;li&gt;Stagenet wallet in development&lt;/li&gt;
&lt;li&gt;Mainnet wallet in production&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Email account
&lt;ul&gt;
&lt;li&gt;Set &lt;code&gt;%DISABLE_EMAIL% = 1&lt;/code&gt; to disable email&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
Deployment Instructions&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;TODO&lt;/li&gt;
&lt;li&gt;Each server the website is hosted on should have a different &lt;code&gt;^%SERVER_NUM% &amp;gt;= 1&lt;/code&gt; in the environment variables
to avoid processing the same order multiple times.&lt;/li&gt;
&lt;li&gt;On the production server, you need to set &lt;code&gt;%XMR_WALLET_PW%&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
Notes&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Copying monero: links into the GUI works rather than manually typing in the address and amount&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
Stripe Test Cards&lt;/h2&gt;
&lt;p&gt;From &lt;a href="https://stripe.com/docs/testing#cards" rel="nofollow"&gt;https://stripe.com/docs/testing#cards&lt;/a&gt;&lt;/p&gt;…&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/LeNerva/lenerva.com"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;h3&gt;
  
  
  Additional Resources / Info
&lt;/h3&gt;

&lt;p&gt;The background is a gif. I made it in After Effects. It was inspired by the divergence circle from WestWorld, but since I'm not a professional VFX editor, I put my own spin on it.&lt;/p&gt;

&lt;p&gt;This is v1 of the site as it meets my base specifications. My next goal is to setup a DigitalOcean droplet and run this code in production to serve &lt;a href="https://lenerva.com"&gt;https://lenerva.com&lt;/a&gt;. I want to create more software in the near-term, and this website marks the first milestone in my next ventures.&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/dkS_Z0mL8c4"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--kSbCvWLr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tpcgt6d6g7dnvzke3071.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--kSbCvWLr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tpcgt6d6g7dnvzke3071.jpg" alt="Image description" width="880" height="473"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Hr7Wu1w3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cismk67wmyc1dna4ef5r.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Hr7Wu1w3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cismk67wmyc1dna4ef5r.jpg" alt="Image description" width="880" height="477"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--IAt409S2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dcj12kc34guujaff39hs.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--IAt409S2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dcj12kc34guujaff39hs.jpg" alt="Image description" width="880" height="478"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wvnASVFI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dgtl9ltwkzi2zib6774d.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wvnASVFI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dgtl9ltwkzi2zib6774d.jpg" alt="Image description" width="880" height="477"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--R_Gc6gQJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v79a8jts0v29y2bjlvkj.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--R_Gc6gQJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v79a8jts0v29y2bjlvkj.jpg" alt="Image description" width="880" height="475"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TPiSxa6D--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9gyjj5ks9vkffb7nrpgu.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TPiSxa6D--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9gyjj5ks9vkffb7nrpgu.jpg" alt="Image description" width="880" height="383"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'm un-commentating this part since I was under the impression that the deadline was 2 AM EST.&lt;/p&gt;

&lt;p&gt;Submissions are due on January 13th, 2022 @ 11:59 PM PT/2 AM ET on January 14th, 2022/6 AM UTC on January 14th, 2022).&lt;/p&gt;

</description>
      <category>atlashackathon</category>
    </item>
  </channel>
</rss>
