Skip to content

Application to manage job applications, interviews, cover letters and feedbacks

License

Notifications You must be signed in to change notification settings

emilio2hd/myinterviews

Repository files navigation

myinterviews

Deploy Build Status codebeat badge Coverage Status

The goal of this app is to manage job applications, interviews, cover letters and feedbacks.

Template

Docker

You can run the application using Docker.

The container has the port 3000 exposed.

The application does not contain a database, so you must inform the database info via environment variables.

Build container

To build an image of the application, execute:

docker build -t myinterviews .

Environment Variables

  • APP_DB_HOST - The database's host address
  • APP_DB_PORT - The database's port
  • APP_DB_USER - The database's username
  • APP_DB_PASSWORD - The database's password
  • SECRET_KEY_BASE - The secret key is required to run in production mode

Docker-compose

Here is an example of a docker-compose.yml file:

db:
  image: postgres:9.4
  container_name: myinterviews-db
  restart: always
  ports:
    - "5432:5432"
  environment:
    - POSTGRES_USER=db_user
    - POSTGRES_PASSWORD=123456
    - POSTGRES_DB=myinterviews
web:
  container_name: myinterviews-web
  restart: always
  build: .
#  volumes:
#    - <your backup dir>:/var/local/myinterviews/backups
  ports:
    - "3000:3000"
  environment:
    - APP_DB_HOST=db
    - APP_DB_PORT=5432
    - APP_DB_USER=db_user
    - APP_DB_PASSWORD=123456
    - SECRET_KEY_BASE=ef8705c8be8bc5c562fd403847e1451d8e149ba4bf88dea34c7e0c99fc55556d3ea3e0619b24ff7399f19c3c0e7798b62ffe643e8a6911cee982e7143ef0e262
  links:
    - db

Database Backups

In order to dump or restore database, there is a rake task to do this.

# dump the development db
rake db:dump

# dump the production db
RAILS_ENV=production rake db:dump

The rake task will check for BACKUP_FOLDER environment variable. When not defined, will create in the db folder. A backup file will be created with the following pattern AAAAMMDDHHMMSS_dbname.dump.

# list all the dumps
rake db:dumps

# restore db based on a latest backup file matching the pattern (e.g. 20210821)
rake db:restore pattern=20210821

Docker

In the Docker image, the backup files will be stored in /var/local/myinterviews/backups. So, if you want the file out of the container mount the volume pointing to that folder. When using docker-compose, add:

volumes:
   - <a directory in the local machine>:/var/local/myinterviews/backups

Email Configuration

My Interviews has support to send emails by smtp only.
⚠️ Note: As of July 15, 2014, Google increased its security measures and now blocks attempts from apps it deems less secure.

Contributions

If you want to contribute, open a issue or send me a pull request. ;)