Skip to content

maddbuzz/hexlet-cv

 
 

Repository files navigation

Hexlet CV

Maintainability Test Coverage Main

About

The purpose of Hexlet CV is to provide a community platform where you get resume recommendations from community members and professional HR.

Interactions on Hexlet CV are based on resumes and resume recommendations. On a particular resume, each community member provides only one recommendation.

Join the community, post resumes and leave recommendations for other members. Tell your colleagues and friends about the site!

The project uses Ruby on Rails.

Tasks can be discussed in the Telegram community.

System requirements

  • Ruby >= 3.2.1
  • Node.js >= 19.0.0
  • SQLite3
  • Heroku CLI

Setup

make setup
make test # run tests
make start # run server http://localhost:3000

make fixtures-load # sometimes, when fixtures were changed

Setup in Docker

make compose-setup # setup app
make compose-test # run tests
make compose # run server http://localhost:3000

make compose-ci-check # run ci

Debug in Docker

docker container ls # watch container
docker attach [container_id]

and inser debugger in controller

Deploy

Add database:

heroku addons:create heroku-postgresql:hobby-dev

Prepare environment variables:

heroku config:set SECRET_KEY_BASE=$(rake secret)
heroku config:set HOST=$(heroku info -s | grep web_url | cut -d= -f2) # https://cv.hexlet.io for production
heroku config:set RACK_ENV=production
heroku config:set RAILS_ENV=production
heroku config:set RAILS_LOG_TO_STDOUT=enabled
heroku config:set EMAIL_FROM=support@hexlet.io

Configure reCAPTCHA

  • Follow the link reCAPTCHA
  • Log into Admin Console with your credentials or create a new Google Account in case you don't have one
  • At Admin Console register a new site as shown in example below
Label: <app_name>.herokuapp.com
Type reCAPTCHA: reCAPTCHA v2 (Checkbox "I'm not a robot")
Domains: <app_name>.herokuapp.com (localhost or/and 0.0.0.0 for development env)
  • Accept terms of use and submit
  • Add generated reCAPTCHA SITE KEY and SECRET KEY to environment variables in production
  • To use reCAPTCHA in development simply copy SITE KEY and SECRET KEY to your .env file

Hexlet Ltd. logo

This repository is created and maintained by the team and the community of Hexlet, an educational project. Read more about Hexlet.

See most active contributors on hexlet-friends.

About

Stackoverflow for Resume

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 73.5%
  • Slim 20.6%
  • JavaScript 2.5%
  • HTML 2.0%
  • Makefile 0.8%
  • Shell 0.3%
  • Other 0.3%