The application is written in Ruby on Rails, download the repository and get started!
- Install
Ruby 2.6
(rbenv) - Install
Postgres
- Install
yarn
- Install
bundler
- Run
bin/setup
inside this repository.
https://github.com/FiloSottile/mkcert
brew install mkcert
mkcert -install
cd config/ssl
mkcert example.com "*.example.com" example.test localhost 127.0.0.1 ::1
mv example.com+5-key.pem example-key.pem
mv example.com+5.pem example.pem
rails s
# In a different terminal
./bin/webpack-dev-server
Application should be available at https://localhost:8443
.
If editing a lot of javascript code which needs to be recompiled, start the webpack-dev-server
separately.
In a terminal separate from rails s
:
./bin/webpack-dev-server
- Run
rails console
- In the console, input:
User.create!(email: 'youremail@mail.com', role: :admin, password: 'your-new-password', name: 'You!')
- Run 'rails console'
- In the console, input:
company = Company.new()
company.name = "Company AB"
company.address = { street: 'Road 1', postal_code: '11122', city: 'Small City', country: 'Sweden' }
company.slug = 'compab'
company.save!