Get up to $350 to build any hardware project, and come to a 4-day hackathon @ Github HQ!
Find a file
2025-05-16 18:32:45 +01:00
.github Move rails to top level of repo 2025-05-07 22:04:48 -04:00
.kamal Move rails to top level of repo 2025-05-07 22:04:48 -04:00
app updated styling for better colorblind support 2025-05-16 11:17:52 -06:00
bin Move rails to top level of repo 2025-05-07 22:04:48 -04:00
config readded database.yml and updated pages 2025-05-14 10:39:19 -04:00
content/projects Remove outdated tests & fix markdown rendering 2025-05-07 22:43:37 -04:00
db updated styling 2025-05-13 14:21:20 -04:00
lib/tasks Move rails to top level of repo 2025-05-07 22:04:48 -04:00
log Move rails to top level of repo 2025-05-07 22:04:48 -04:00
public a bunch of stuff ahh 2025-05-14 18:47:49 -04:00
script Move rails to top level of repo 2025-05-07 22:04:48 -04:00
storage Move rails to top level of repo 2025-05-07 22:04:48 -04:00
test add an events controller + page 2025-05-11 23:13:30 -04:00
tmp Move rails to top level of repo 2025-05-07 22:04:48 -04:00
vendor Move rails to top level of repo 2025-05-07 22:04:48 -04:00
.dockerignore Move rails to top level of repo 2025-05-07 22:04:48 -04:00
.gitattributes Move rails to top level of repo 2025-05-07 22:04:48 -04:00
.gitignore Add more documentation on how to start server 2025-05-14 16:44:31 +02:00
.rubocop.yml Move rails to top level of repo 2025-05-07 22:04:48 -04:00
.ruby-version Move rails to top level of repo 2025-05-07 22:04:48 -04:00
config.ru Move rails to top level of repo 2025-05-07 22:04:48 -04:00
Dockerfile Bring back accidentally removed libyml 2025-05-08 14:25:20 -04:00
Gemfile Switch to goodjob 2025-05-13 12:21:22 -04:00
Gemfile.lock Switch to goodjob 2025-05-13 12:21:22 -04:00
LICENSE Initial commit 2025-04-23 12:26:34 -04:00
Procfile.dev Move rails to top level of repo 2025-05-07 22:04:48 -04:00
Rakefile Move rails to top level of repo 2025-05-07 22:04:48 -04:00
README.md Correct startup docs 2025-05-14 19:52:30 +02:00
submissions.yml Update submissions.yml 2025-05-16 18:32:45 +01:00

Highway

Welcome to the Hack Club Highways.

Local development

To run this project, you need to first install ruby, ruby-stdlib, postgresql, postgresql-libs, docker and gem.

Then, add the following to your .zshrc or .bashrc to activate the ruby development environment:

export GEM_HOME="$(gem env user_gemhome 2>/dev/null)"
export PATH="$PATH:$GEM_HOME/bin"

Restart your terminal session, and run the following code at the root of the cloned respository to install the required packages:

gem install rails
gem install kamal
bundle install

Now, create a postgresql database:

sudo su -l postgres -c "initdb --locale=C.UTF-8 --encoding=UTF8 -D '/var/lib/postgres/data'"
sudo su -l postgres
$ createuser --interactive
Enter name of role to add: <your username>
Shall the new role be a superuser? (y/n) y
$ createdb highway_dev
$ createdb highway_test
$ exit

Start the docker server:

bin/rails credentials:edit
docker build . --tag highway:latest
docker run highway

At last, run the executable at ./bin/setup to start up the development server!