Skip to content

Time Capsule Memories is a personal project that allows users to store and send memories into the future

Notifications You must be signed in to change notification settings

PureLeach/time-capsule-memories

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Time Capsule Memories

Time Capsule Memories is a personal pet-project designed to store and send your memories into the future. Users can create “time capsules” containing messages and photos that will be delivered to the recipients of their choice at a specified date and time.


Architecture

architecture


Quick Start

  1. Copy the example environment file:

    cp example.env .env
  2. Build the Docker containers:

    docker-compose build
  3. Start the app:

    docker-compose up

Usage

Working with migrations (local)

This project uses the Goose library to manage database migrations.

Installing Goose

  1. Install the CLI:

    go install github.com/pressly/goose/v3/cmd/goose@latest
  2. (Optional) Install the library if you plan to use Goose in your Go application:

    go get -u github.com/pressly/goose/v3

Creating a migration

  1. Initialize the migrations directory:

    mkdir -p migrations
  2. Create a new migration:

    goose create create_capsules_table sql -dir ./migrations

    This will generate a file like 20241124120000_create_capsules_table.sql in the migrations folder.

  3. Add SQL to the migration file

Applying migrations

  1. Apply all pending migrations:

    make migrate_up
  2. Rollback the last migration:

    make migrate_down

About

Time Capsule Memories is a personal project that allows users to store and send memories into the future

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published