domeniqque-pereira-deel / bootcamp-gobarber-api

Web application made with Node/ExpressJs to service management

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GoBarber

Let your user make an appointment with a barber and don't lose control of your schedule.

Instalation

First you need the Docker instaled in your machine and than run:

cp .env.example .env

docker-compose up -d

Email Service

You're going to need a service to receive email notifications. One suggestion is use the Ethereal Email. Create an free email account and put the .env with the credentials.

/*
You will see in the Ethereal Email:

const transporter = nodemailer.createTransport({
    host: 'smtp.ethereal.email',
    port: 587,
    auth: {
        user: 'shanon.kuhic58@ethereal.email',
        pass: 'Cva8mEnrdTxCRryczf'
    }
});
*/


//So, update the .env variables with the corresponding values.
MAIL_HOST=smtp.ethereal.email
MAIL_PORT=587
MAIL_USER=shanon.kuhic58@ethereal.email
MAIL_PASS=Cva8mEnrdTxCRryczf

Bug report

We are using Sentry service to catch bugs and exceptions. You'll need to create an account on Sentry.io and create a project. Copy the DSN url and update the SENTRY_DSN variable on .env file. See here how to find the DSN of an existing project.

Execution

It's everything ok? So, now we can execute the application.

yarn migrate && yarn queue && yarn dev

About

Web application made with Node/ExpressJs to service management


Languages

Language:JavaScript 96.3%Language:Handlebars 1.9%Language:Shell 1.5%Language:Dockerfile 0.4%