Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Just give it some time!

NotificationsYou must be signed in to change notification settings

hackclub/hackatime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PingStatusWork time

Local development

# Set it up...$ git clone https://github.com/hackclub/hackatime&&cd hackatime# Set your config$ cp .env.example .env

Edit your.env file to include the following:

# Database configurations - these work with the Docker setupDATABASE_URL=postgres://postgres:secureorpheus123@db:5432/app_developmentWAKATIME_DATABASE_URL=postgres://postgres:secureorpheus123@db:5432/app_developmentSAILORS_LOG_DATABASE_URL=postgres://postgres:secureorpheus123@db:5432/app_development# Generate these with `rails secret` or use these for developmentSECRET_KEY_BASE=alallalalallalalallalalalladlalllalalENCRYPTION_PRIMARY_KEY=32characterrandomstring12345678901ENCRYPTION_DETERMINISTIC_KEY=32characterrandomstring12345678902ENCRYPTION_KEY_DERIVATION_SALT=16charssalt1234

Comment out theLOOPS_API_KEY for the local letter opener, otherwise the app will try to send out a email and fail.

Build & Run the project

$ docker compose run --service-ports web /bin/bash# Now, setup the database using:app# bin/rails db:create db:schema:load db:seed# Now start up the app:app# bin/dev# This hosts the server on your computer w/ default port 3000# Want to do other things?app# bin/rails c# start an interactive irb!app# bin/rails db:migrate# migrate the database

You can now access the app athttp://localhost:3000/

Use email authentication from the homepage withtest@example.com or create a new user (you can view outgoing emails athttp://localhost:3000/letter_opener)!

Ever need to setup a new database?

# inside the docker container, reset the dbapp# $ bin/rails db:drop db:create db:migrate db:seed

About

Just give it some time!

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors20


[8]ページ先頭

©2009-2025 Movatter.jp