An API for barber appointment and scheduling.
A Node.js API built with Express and all the latest tools and best practices in development!
- β‘ Express β A web framework for Node
- πΎ Sequelize β SQL dialect ORM for Node.js
- π MongoDB β document-based database
- π Redis β key-value data model
- β¨οΈ Yup - Object schema validation
- πΊ Sentry - cross-platform application monitoring
- π§ Nodemailer - Send e-mails with Node.JS
- π Lint β ESlint/Prettier/Editor Config
In the next few weeks, I plan to include Docker directly in the repository with docker-compose, until there this step is required.
To run this server you will need three containers running on your machine.
To do so, you will need to run the following commands:
docker run --name redisbarber -p 6379:6379 -d -t redis:alpine;docker run --name mongobarber -p 27017:27017 -d -t mongo;docker run --name some-postgres -e POSTGRES_PASSWORD=docker -p 5433:5432 -d postgres;
Remember: If you restart your machine, you will need to start again the server with docker start <container_id>.
Consider checking out the FrontEnd repository!
- Clone this repo using
https://github.com/jpedroschmitz/gobarber-api.git - Move to the appropriate directory:
cd gobarber-api. - Run
yarnto install dependencies. - Copy the
.env.examplefile and rename it to.env. - Add all the values for the environment variables.
- Run
yarn startandyarn queueto run the servers athttp://localhost:3000.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests.
This project is licensed under the MIT License - see the LICENSE.md file for details.