Skip to content

GenesisEducationKyiv/software-engineering-school-4-0-AndriiPolishko

Repository files navigation

Genesis currency rate project

Note

for some reason when I running MySQL from docker compose I can't get access to it. Because of this I am setting up containers using bash scripts

Description

This app can be fully containerised, or you can run server locally for the quicker debugging.

Env

  • Most of the fields you need to fill with your private data
  • DB_HOST should have the value of the data base host. When you run the serer locally this value should equal to "127.0.0.1" and when you run the server from the container, change it to "mysqlContainer"

How to run

  • Insure you are in the root of project
  • Create server image by running sh ./scripts/create-server-image.sh
  • Create mysql cotainer by running sh ./scripts/create-mysql-container.sh
  • Create server container by running sh ./scripts/create-server-container.sh

After starting the server migrations will start automatically and will create required table. That's it! Your are good to use it!

Examples of usage

Get the rurrent rate

getRate

Subscribe new email

subscribe

Try to subscribe same email twice

subscribeFail

Subscribe different email

subscribeSecond

Sent email manually (it gets sent automatically every day at 12:00)

emailSent

How email looks

email

Examples of good setup

goodLogs

About

software-engineering-school-4-0-AndriiPolishko created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •