Writing

Blog

Product notes, engineering write-ups, and lessons from building, operating, and buying software at CodeConda.

How to create a simple API with Express

How to create a simple API with Express

Express (also called Express.js) is a back-end framework written in JavaScript. It's commonly used for writing "RESTful" APIs with Node.js.

How to work with useState and useEffect in React

How to work with useState and useEffect in React

If you've looked at any React app, chances are you've seen useState and useEffect being used with the component code.

What the hell is a "RESTful" API?

What the hell is a "RESTful" API?

In short, an API is a way for two pieces of software to talk to one another. You can think of it like a drive-through window at a fast food restaurant.

How to update MongoDB database in Python

How to update MongoDB database in Python

Developers can use PyMongo to read and write from a MongoDB Atlas database with just a few lines of Python code in a web app like Django or Flask or Python script.

How to schedule future code execution with Django

How to schedule future code execution with Django

If you're trying to schedule future code execution with Django, you've come to the right place. We'll achieve this with the threading and schedule modules in Python.

How do you use ChatGPT to create web apps?

How do you use ChatGPT to create web apps?

The trick to using this tool is in how you write your prompts. The more bit-size and specific, the better. Asking ChatGPT to “make a web app” wouldn’t give you much more than if you were to Google that same question. However, prompting ChatGPT with “Ruby on Rails model for a user” would likely yield you something much better. This allows you to work much more quickly and productively than if you had to write out the Ruby file by hand.

How to create a clean landing page with React

How to create a clean landing page with React

React (written in JavaScript) is a powerful front-end framework that can be used to make clean, and user-friendly websites. This post will walk you through how to set up a basic landing page using React.The first step is to use npx to create a new React app, and then navigate to your project directory. The install process will also automatically install some useful packages, like react-dom.Create new React appnpx create-react-app landing-page cd landing-pageGreat. Now that we've done that, you s

How to use url_for in Flask

How to use url_for in Flask

Flask provides an easy way to dynamically auto-generate href paths in your HTML files using the url_for function. The first step is to import url_for at the top of your Flask application file.from flask import url_forOnce you've done that, we can jump over to your HTML files to start implementing url_for. Let's start with your CSS link. Without url_for, you might link your stylesheet using an explicit path.<link rel="stylesheet" href="static/stylesheets/custom/index.css">With url_for, we can rep

How to create a web app using Flask in Python (Part 3)

How to create a web app using Flask in Python (Part 3)

If you haven't already, read Part 1 and Part 2 in our Flask series. This tutorial is going to pick up where Part 2 left off. If you followed the instructions correctly, you should have a file called flask_web_app.py with the following code: from flask import Flask, render_template