Skip to content

The idea behind this project is to connect individuals who are looking to get their blood donated. The result is a simple in-browser app that pushes user's entries into a SQL database.

Notifications You must be signed in to change notification settings

carlosblanc0/donatefy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

-----------------------------------------------------

donatefy

Database Backend DevOps

The idea behind this project is to connect individuals who are looking to get their blood donated. The result is a simple in-browser app that pushes user's entries into a SQL database.

donatefy

YouTube Shorts

Run Locally

Clone the project

  git clone  git@github.com:carlosblanc0/donatefy.git

Go to the project directory

  cd donatefy

Install dependencies

npm install

Spin up the database (I've used ElephantSQL's free tier for demoing purposes)

touch elephantsql.js
var pg = require('pg');

var conString = "INSERT_YOUR_POSTGRES_URL_HERE" //Can be found in the Details page
var client = new pg.Client(conString);
client.connect(function(err) {
  if(err) {
    return console.error('could not connect to postgres', err);
  }
  client.query('SELECT NOW() AS "theTime"', function(err, result) {
    if(err) {
      return console.error('error running query', err);
    }
    console.log(result.rows[0].theTime);

    client.end();
  });
});

Start the server

  npm start

Design

Figma

Live Demo

Coming soon on https://donatefy.herokuapp.com

Official Repo

tags: Netlify, Templating, Basics

-----------------------------------------------------

About

The idea behind this project is to connect individuals who are looking to get their blood donated. The result is a simple in-browser app that pushes user's entries into a SQL database.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages