Application developed in "Imersão Full Stack && Full Cycle" event, promoted by Full Cycle 🚀
EcoBricks is an e-commerce that sells different types of bricks, such as ecological ones! 🧱
✨ Features (of this repo)
- Create order
- List order
- All
- By ID
- Authentication (generate token JWT)
- Order creation event publishing in RabbitMQ
Tip
Visit demo or the others repositories of this project:
- Frontend: @MariaGabrielaReis/ecobricks-web -
Next, Typescript, React Hook Form, Yup
- API Catalog: @MariaGabrielaReis/ecobricks-product-catalog -
Go, MySQL, Docker
- API Payment: @MariaGabrielaReis/ecobricks-payment -
Go, RabbitMQ, Docker
Be sure you have Git, Docker and Node configurated, then follow the directions below.
# Clone this repository
$ git clone https://github.com/MariaGabrielaReis/ecobricks-checkout
# Access project folder
$ cd ecobricks-checkout
# Install dependencies
$ yarn
Important
Before running the project, set up the container with database:
$ docker-compose up -d
Now, access database with root user and check if database was created:
$ docker-compose exec db dash
$ mysql -uroot -proot
$ show databases;
# Generate fixtures
$ yarn run fixture
# Run
$ yarn start:dev
Note
The server will start on port 3333 - http://localhost:3333
- For quick API testing, use
test.http
file to send requests with the VSCode "REST Client" extension.