项目作者: RuthMaria

项目描述 :
It's an API that makes appointments for a barber shop.
高级语言: TypeScript
项目地址: git://github.com/RuthMaria/GoBarber-backend.git
创建时间: 2021-02-12T04:13:29Z
项目社区:https://github.com/RuthMaria/GoBarber-backend

开源协议:MIT License

下载




Logo GoBarber


Technologies Used |
How to run the API |
How to contribute |
License


PRs welcome!

License

License


:books: About

It’s an API that makes appointments for a barber shop.

Services:

  • Create user
  • Read user
  • Reset password
  • Forgot password
  • Create session user
  • Create appointment
  • Read appointements
  • Read static files
  • Change avatar


⚒️ Technologies Used

  • JWT
  • Jest
  • Multer
  • Docker
  • Node.js
  • Express
  • TypeORM
  • Postgres
  • Bcryptjs
  • Ethereal
  • TypeScript


🚀 How to run the API


:small_orange_diamond: Requirements


:small_orange_diamond: Commands

  • Clone this repository
  1. git clone https://github.com/RuthMaria/GoBarber-backend.git
  • Install the postgres image on your docker container using port 5432 or another port
  1. docker run --name gostack_postgres -e POSTGRES_PASSWORD=docker -p 5432:5432 -d postgres
  • Start postgres image
  1. docker start gostack_postgres
  • Open the Dbeaver and create a new connection with Postgres. Change the port to 5432 and in the password, you type “docker”, as you have defined above when create a postgres image on docker.

  • After that, create a new database in your postgres connection inside Dbeaver. Write “gostack_gobarber” in the database name.

  • Install dependencies

  1. yarn
  • Create the migrations
  1. yarn typeorm migration:run
  • Run the API
  1. yarn dev:server
  • Run the tests
  1. yarn test


🎯 How to contribute

  • Fork this repository,
  • Create a branch with your feature: git checkout -b my-feature
  • Commit your changes: git commit -m 'feat: My new feature'
  • Push your branch: git push origin my-feature


:memo: License

This project is under the MIT license. See the file LICENSE for more details.



Developed with ❤️ by Ruth Maria