Skip to content

babelsh/mission-us-rails

Repository files navigation

Mission Us

Build Status

Dependencies

  • Ruby >= 2.5.1
  • PostgreSQL 10.4
  • node.js 6.0.0+

MacOS

brew update
brew install postgres
brew install yarn
gem install bundler

Ubuntu

sudo apt-get update
sudo apt-get install postgresql postgresql-contrib postgresql-server-dev-all cmake
sudo apt-get install yarn
gem install bundler

Docker

[WIP]

Setup

bundle install
yarn install
cp config/database.example.yml config/database.yml

echo "POSTGRESQL_PASSWORD='YourPassword'" >> .env
echo "POSTGRESQL_USERNAME='YourUserName'" >> .env

bin/rails db:setup
bin/rails db:migrate
bin/rails db:seed

Testing

Test

We use rspec framework to test our rails application. To test you can run:

bundle exec rspec

Jest

To test our js files we use jest framework. Run with:

yarn test

And if you change any component, you should update the snapshot with:

yarn test -u <path_to_test_file_changed>

Development

Run the local server at http://localhost:3000 with:

bin/rails s

Run tests with:

rspec

#Deploy

[WIP]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published