chadchristensen / giftsforprogrammers

https://giftsforprogrammers.vercel.app
1 stars 0 forks source link

Gifts for Programmers

A web application for posting curated lists to a niche audience. There is a simple admin portion of the site that requires authentication and allows the admin to create, edit, and delete posts.

Screenshots

The Gifts for Programmers website homepage, showing 2 posts: a black elbow rest pad, and a book titled HTML for Babiels

Demo

Visit https://giftsforprogrammers.vercel.app/ to see the live site.

Tech Stack

Client:

Testing:

Server:

Features

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

DATABASE_URL

Run Locally

Clone the project

  git clone https://github.com/chadchristensen/giftsforprogrammers.git

Go to the project directory

  cd giftsforprogrammers

Install dependencies

  npm install

Start the server

  npm run dev

Running DB with Docker

There is a docker-compose.yml that will start up a PostgeSQL database.

You will need to have a dp_password.secret.txt file in your repo that contains the password to the database.

This file should be in included in the .gitignore file.

Seeding the Database

This is a helper script to seed the database for initial setup for development.

To run the seed script, run the following command

  npm run seed

Running Tests

To run tests, run the following command

  npm run test

or

  npm run test:watch

Roadmap