hmartiins / GoBarber-Server

πŸ’ˆ API to hold the meeting between barbers and customers βœ‚οΈ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

logo-gobarber

πŸ’ˆ GoBarber Application Server πŸ’ˆ

The best way to schedule your service !

GitHub top language Made by Repository size GitHub last commit Repository issues GitHub

About the project   |    Technologies   |    Getting started   |    How to contribute   |    License

πŸ’‡πŸ»β€β™‚οΈ About the project

This api provides everything needed to organize appointments between the barbers and customers.

Customers can choose the best time available to them.

Providers can view all of their appointments, manage schedules, view appointment history, and also see if a customer has canceled the schedule.

πŸš€ Technologies

The main technologies used in this API are:

πŸ’» Getting started

Requirements

Fyi.: I recommend using the docker

Clone the project and access the folder

$ git clone https://github.com/hmartiins/GoBarber-Server && cd GoBarber-Server

Follow the steps below

# Install the dependencies
$ yarn install

# Make a copy of '.env.example' to '.env'
# and set with YOUR environment variables.
# The aws variables do not need to be filled for dev environment
$ cp .env.example .env

# Create the instance of postgreSQL using docker
$ docker run --name gobarber-postgres -e POSTGRES_USER=docker \
              -e POSTGRES_DB=gobarber -e POSTGRES_PASSWORD=docker \
              -p 5432:5432 -d postgres

# Create the instance of mongoDB using docker
$ docker run --name gobarber-mongodb -p 27017:27017 -d -t mongo

# Create the instance of redis using docker
$ docker run --name gobarber-redis -p 6379:6379 -d -t redis:alpine

# Once the services are running, run the migrations
$ yarn typeorm migration:run

# Finally, run the api service in a development environment :)
$ yarn dev:server

# Well done, project is started!

πŸ€” How to contribute

Make a fork of this repository

# Fork using GitHub official command line
# If you don't have the GitHub CLI, use the web site to do that.

$ gh repo fork hmartiins/GoBarber-Server

Follow the steps below

# Clone your fork
$ git clone your-fork-url && cd GoBarber-Server

# Create a branch with your feature
$ git checkout -b my-awesome-feature

# Make the commit with your changes
$ git commit -m 'my new feature'

# Send the code to your remote branch
$ git push origin my-feature

After your pull request is merged, you can delete your branch

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.


  Made by Henrique Martins   |   See my linkedin  

About

πŸ’ˆ API to hold the meeting between barbers and customers βœ‚οΈ

License:MIT License


Languages

Language:TypeScript 89.4%Language:JavaScript 9.8%Language:Handlebars 0.8%