Preview | Technologies | Getting started | License
GoBarber is a barber shop/beauty salon service scheduling platform. With this application, service providers can register and users can make appointments with these providers.
This project was developed using the following technologies:
- NodeJS
- ExpressJS
- TypeScript
- ReactJS
- React Native
- JWT
- Yup
- UnForm
- Styled-Components
- Eslint
- Prettier
- EditorConfig
Clone the project
$ git clone https://github.com/gabrielmnzs/gobarber.git
Import the Insomnia.json
on Insomnia App or click on button bellow
Requirements
- Node.js
- Yarn or npm
- One instance of PostgreSQL
Obs.: I recommend use docker
Access the folder
$ cd backend
Follow the steps below
# Install the dependencies
$ yarn
# 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 mongodb -p 27017:27017 -d -t mongo
# Create the instance of redis using docker
$ docker run --name redis -p 6379:6379 -d -t redis:alpine
# Once the services are running, run the migrations
$ yarn typeorm migration:run
# To finish, run the api service
$ yarn dev:server
# Well done, project is started!
Requirements
- Make sure the API is running
Access the folder
$ cd frontend
Follow the steps below
# Install the dependencies
$ yarn
# Be sure the file 'src/services/api.ts' have the IP to your API
# Start the client
$ yarn start
Requirements
- Make sure the API is running
Access the folder
$ cd app
Follow the steps below
# Install the dependencies
$ yarn
# Be sure the file 'src/services/api.ts' have the IP to your API
# If you are going to emulate with android, run this command
# Be sure to have the emulator open
$ yarn android
# If you are going to emulate with ios, run this command
$ yarn ios
This project is licensed under the MIT License. See the LICENSE file for details.
Made with 💜 by Gabriel Menezes