Skip to content
 
 

Repository files navigation

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!

About

Get up to $350 to build any hardware project, and come to a 4-day hackathon @ Github HQ!

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages