<?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>Forem: Christoffer Lybekk</title>
    <description>The latest articles on Forem by Christoffer Lybekk (@lybekk).</description>
    <link>https://forem.com/lybekk</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%2F430324%2Fd78e2564-f170-4f16-807c-7f5675ddf13e.png</url>
      <title>Forem: Christoffer Lybekk</title>
      <link>https://forem.com/lybekk</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/lybekk"/>
    <language>en</language>
    <item>
      <title>How to: Get Netlify Bandwith Usage Programatically For Free</title>
      <dc:creator>Christoffer Lybekk</dc:creator>
      <pubDate>Thu, 30 Jul 2020 13:51:28 +0000</pubDate>
      <link>https://forem.com/lybekk/how-to-get-netlify-bandwith-usage-programatically-for-free-3kpc</link>
      <guid>https://forem.com/lybekk/how-to-get-netlify-bandwith-usage-programatically-for-free-3kpc</guid>
      <description>&lt;h2&gt;
  
  
  Using Python
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Explanation
&lt;/h3&gt;

&lt;p&gt;&lt;em&gt;In the script below, replace the following variable's values&lt;/em&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Setting&lt;/th&gt;
&lt;th&gt;Explanation&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;ACCOUNT_NAME&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;The account name associated with the account.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;SITE_NAME&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;The site name can be found in 'Site information' in the project's settings, or at the top in the overview.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;EMAIL&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;The email used during account registration.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;PERSONAL_ACCESS_TOKEN&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Created at &lt;a href="https://app.netlify.com/user/applications"&gt;https://app.netlify.com/user/applications&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Full Python script
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;requests&lt;/span&gt;

&lt;span class="c1"&gt;# Edit these
&lt;/span&gt;&lt;span class="n"&gt;ACCOUNT_NAME&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;'youraccountname'&lt;/span&gt;
&lt;span class="n"&gt;SITE_NAME&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;'projectsitename'&lt;/span&gt;
&lt;span class="n"&gt;EMAIL&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;'name@example.com'&lt;/span&gt;
&lt;span class="n"&gt;PERSONAL_ACCESS_TOKEN&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"longlonglongstringgeneratedbynetlify"&lt;/span&gt;

&lt;span class="c1"&gt;# Leave the rest
&lt;/span&gt;&lt;span class="n"&gt;bandwidth_api_url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;'https://api.netlify.com/api/v1/accounts/{}/bandwidth'&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ACCOUNT_NAME&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;auth_string&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"Bearer "&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;PERSONAL_ACCESS_TOKEN&lt;/span&gt;

&lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bandwidth_api_url&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s"&gt;'User-Agent'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;'{0} ({1})'&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nb"&gt;format&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;SITE_NAME&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;EMAIL&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="s"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;auth_string&lt;/span&gt;
&lt;span class="p"&gt;})&lt;/span&gt;
&lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

&lt;span class="c1"&gt;# Optional printing to console. Can be removed
&lt;/span&gt;&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;'Raw response: '&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;calculate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;response&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;1000000&lt;/span&gt;

&lt;span class="n"&gt;print_list&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s"&gt;"Included in plan"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;calculate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"included"&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="s"&gt;"Used"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;calculate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"used"&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="s"&gt;"Remaining"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;  &lt;span class="n"&gt;calculate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"included"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;calculate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"used"&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;'Human readable:'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;print_list&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;items&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="s"&gt;': '&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="s"&gt;' MB'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;Note: The returned usage will be a bit higher than how Netlify calculates it.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Using Javascript
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Netlify Bandwidth Checker Tool
&lt;/h3&gt;

&lt;p&gt;If you are comfortable pasting your &lt;strong&gt;Personal Access Token&lt;/strong&gt; in a web form, try &lt;a href="https://lybekk.tech/guide/get-netlify-bandwidth-usage#netlify-bandwidth-checker-tool"&gt;this tool&lt;/a&gt;, which does the same as the Python script, only in JavaScript.&lt;br&gt;
One way to mitigate risk is to create a token, and revoke it just after using this tool.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/lybekk/lybekk.github.io/blob/source/src/components/tools/netlifyBandwidthUsage.js"&gt;Source code&lt;/a&gt;&lt;/p&gt;

</description>
      <category>netlify</category>
      <category>python</category>
      <category>javascript</category>
    </item>
    <item>
      <title>How To: Use Fluent UI Icons in Gatsby</title>
      <dc:creator>Christoffer Lybekk</dc:creator>
      <pubDate>Sun, 26 Jul 2020 11:27:33 +0000</pubDate>
      <link>https://forem.com/lybekk/how-to-use-fluent-ui-icons-in-gatsby-277e</link>
      <guid>https://forem.com/lybekk/how-to-use-fluent-ui-icons-in-gatsby-277e</guid>
      <description>&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A running Gatsby development environment with Fluent UI&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  First - Initialize icons
&lt;/h2&gt;

&lt;p&gt;Fluent UI React's official documentation instructs you to include the below lines in the root entry file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;initializeIcons&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;@uifabric/icons&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nx"&gt;initializeIcons&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In &lt;strong&gt;Gatsby&lt;/strong&gt;, an easier and more straightforward way is to include these lines in &lt;code&gt;index.js&lt;/code&gt; or a layout component (I.E. &lt;code&gt;Layout.js&lt;/code&gt;).&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Another possible solution may be to put them in one of Gatsby's API files.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;By default, when a user visits the deployed Gatsby app, all icons will be downloaded from one of Microsoft servers.&lt;/p&gt;

&lt;p&gt;To &lt;strong&gt;avoid&lt;/strong&gt; this behaviour, do a couple of small adjustments.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Copy the icons from &lt;code&gt;your_project\node_modules\@uifabric\icons\fonts&lt;/code&gt; to a subdirectory in your projects 'static' folder.&lt;/li&gt;
&lt;li&gt;Modify the lines from earlier slightly, as below, where the parameter for &lt;code&gt;initializeIcons()&lt;/code&gt; is the path to where the icons are.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;initializeIcons&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;@uifabric/icons&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nx"&gt;initializeIcons&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;https://lybekk.tech/fluenticons/&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;The slash '/' at the end is important&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Now Gatsby will load the icons with the same performance and guarantees as the other files, ensuring correct rendering.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;See an example of Fluent UI running on Gatsby here:&lt;br&gt;
&lt;a href="https://lybekk.tech/tools/uuidgenerator/"&gt;Lybekk Tech - UUID Generator&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;p&gt;Further documentation on using &lt;br&gt;
&lt;a href="https://github.com/microsoft/fluentui/wiki/using-icons"&gt;icons with Microsoft's Fluent UI&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;As an added bonus, a way to use Font Awesome instead of Fluent UI icons.&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;registerIcons&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;@uifabric/styling&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;FontAwesomeIcon&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;@fortawesome/react-fontawesome&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;faCode&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;@fortawesome/free-solid-svg-icons&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nx"&gt;registerIcons&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;icons&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="na"&gt;Filter&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nx"&gt;FontAwesomeIcon&lt;/span&gt; &lt;span class="nx"&gt;icon&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;faCode&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="sr"&gt;/&lt;/span&gt;&lt;span class="err"&gt;&amp;gt;
&lt;/span&gt;  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>gatsby</category>
      <category>fluentui</category>
      <category>react</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Running PouchDB Server on Android</title>
      <dc:creator>Christoffer Lybekk</dc:creator>
      <pubDate>Mon, 13 Jul 2020 01:07:39 +0000</pubDate>
      <link>https://forem.com/lybekk/running-pouchdb-server-on-android-5efa</link>
      <guid>https://forem.com/lybekk/running-pouchdb-server-on-android-5efa</guid>
      <description>&lt;p&gt;&lt;strong&gt;PouchDB Server&lt;/strong&gt; is a drop-in replacement for CouchDB, using PouchDB and Node.js. &lt;strong&gt;Termux&lt;/strong&gt; is an Android terminal emulator and Linux environment app that works directly with no rooting or setup required.&lt;br&gt;
With the ability to run a linux terminal on Android, we can get a running instance of PouchDB Server on it.&lt;/p&gt;
&lt;h3&gt;
  
  
  Goal
&lt;/h3&gt;

&lt;p&gt;Having a PouchDB Server running on your Android phone.&lt;/p&gt;
&lt;h3&gt;
  
  
  What you will need
&lt;/h3&gt;

&lt;p&gt;An Android phone with &lt;a href="https://play.google.com/store/apps/details?id=com.termux&amp;amp;hl=en_US"&gt;Termux&lt;/a&gt; installed&lt;/p&gt;
&lt;h3&gt;
  
  
  Instructions
&lt;/h3&gt;

&lt;p&gt;At the command line in Termux, run the commands below in the following order:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pkg &lt;span class="nb"&gt;install &lt;/span&gt;python
pkg &lt;span class="nb"&gt;install &lt;/span&gt;nodejs
npm &lt;span class="nt"&gt;-g&lt;/span&gt; &lt;span class="nb"&gt;install &lt;/span&gt;node-gyp
npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; pouchdb-server
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;A ton of warnings and errors may pop up. These can be ignored as long as we get it up and running successfully.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Finally, run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pouchdb-server &lt;span class="nt"&gt;--sqlite&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If it didn't work, install SQLite:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pkg &lt;span class="nb"&gt;install &lt;/span&gt;sqlite
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If all goes well, the PouchDB Server admin interface should be available at &lt;code&gt;&lt;a href="http://localhost:5984/_utils"&gt;http://localhost:5984/_utils&lt;/a&gt;&lt;/code&gt;, in any browser on your phone:&lt;/p&gt;

&lt;h4&gt;
  
  
  Some finishing notes
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;At first, PouchDB Server will only be available locally. To enable access from other devices connected to the same network access point, change configuration setting httpd bind_address to 0.0.0.0&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;em&gt;It starts in admin party-mode (no authentication = open to any one editing.). Be sure to create an admin user if the server is made available on the network to prevent unintended access.&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://lybekk.tech/guide/pouchdb-server-termux"&gt;Source article&lt;/a&gt;&lt;/p&gt;

</description>
      <category>pouchdb</category>
      <category>termux</category>
      <category>android</category>
    </item>
  </channel>
</rss>
