This is a Next.js project bootstrapped with create-next-app
.
First, copy the .env.example
to .env.local
and fill missing fields.
Then:
yarn dev
Open http://localhost:3000 with your browser to see the result.
main.tf
has the config to create the S3 bucket used to store product photos.
Cause of the time, I didn't have time to deploy the whole project to aws, but I intended to use terraform next-js for that.
You can use the docker-compose file delivered with the project to run the postgres database using the following command inside the project:
Then:
docker-compose up
All endpoints are documented using swagger, you can access through http://localhost:3000/docs.
-
Cause of time, I wasn't able to implement the product photo edit page, but all endpoints are implemented and can be accessed through swagger.
-
The "db:create" command is not working cause the library used has a bug, but I already opened a PR and I'm waiting the PR to be merged (tada5hi/typeorm-extension#13)