This is a template for creating apps for Nuvemshop/Tiendanube ecosystem using Nimbus Design System and the Nuvemshop/Tiendanube API. It functions as a monorepo, as it includes all the necessary code to start and maintain the front-end and back-end of the application.
This template provides a starter project for building standalone apps using the follwing technologies:
Before getting started, make sure you have the following dependencies installed in your development environment:
- Node.js (version 14 or higher)
- This project runs with yarn modern (v3+)
- The created application always has permission to
Write products
. However, if the permission is changed on the Partner Portal, it is necessary to setWrite products
in order for the template to work. (Learn more about permissions)
- If you install the app in a demo store, it will only be possible to add a maximum of 10 products.
- Webehooks have not been implemented.
- The
packages/app-template-node/config.json
file simply stores the credentials of a store, and when the installation process is repeated, the old object is replaced by the new one. - If you don't change the redirect URL in the Partners Portal to the port where the project is running, it won't be possible to authenticate the app or access the Product API.
- For the Product API to work, the app must have
Write products
permission.
- To help you better understand the process, refer to the following App Template Flow.
- Please visit Partners Portal - Portuguese or Partners Portal - Spanish, access to create an account in case you haven't done so already. (Learn how to create an account - Portuguese or Learn how to create an account - Spanish)
- If you haven't created an app on the Partners Portal yet, create one. (Learn how to create an app - Portuguese or Learn how to create an app - Spanish)
- Clone this repository:
git clone https://github.com/TiendaNube/nimbus-app-template-react.git
- Open the project in your code editor (e.g., Visual Studio Code, Eclipse, etc.).
-
This project will only work with yarn modern, specifically
3.6.0 or higher
. -
In the terminal, check yarn version using the following command:
yarn --version
-
The image below represents the version of Yarn that should be the same or higher on your machine:
- Go to the root file and in the terminal, install the project dependencies using the following command:
yarn install
- Go to the
packages/app-template-node
file and in the terminal, install the project dependencies using the following command:yarn install
- Go to the
packages/app-template-vite
file and in the terminal, install the project dependencies using the following command:yarn install
- Go back to the Partners Portal and navigate to the details page of your app.
- Then, copy the
App ID
andClient Secret
, which are the authorization keys, in order to install your app on the stores.
- Go back to your code editor:
- Rename the
.env-example
file to.env
. - Paste the credentials copied in the previous step into the
.env
file:- PORT=3400 (Port where the backend will run)
- CLIENT_ID="App ID"
- CLIENT_SECRET="Client Secret"
- USER_EMAIL="Your Partners Portal account email"
- APP_NAME="Your app name"
- VITE_APP_TEMPLATE_API="http://localhost:3400"
- Rename the
- At the root of the project to start both
app-template-vite
andapp-template-node
, run the following command:yarn dev
- After install app at store, go back to the Partner Portal:
- Log in to your store (if you're not already logged in).
- To install the app, add
admin/apps/:app-id/authorize
to your store URL and confirm the installation. Here are the steps to follow:
- Now, your app is ready to use by following the steps below:
We are here to provide you with the support and assistance you need. If you have any questions or require further assistance, please don’t hesitate to reach out to us. Here are a few ways you can get in touch:
- Help Section: Visit Partners Portal help section for comprehensive resources and guidance.
- Issue Tracker: If you encounter any issues or bugs related to our project, you can create a new issue on our GitHub repository.
- Visit this link to access the issue tracker and provide detailed information about the problem you’re facing.
- Contact by Email: For any additional feedback, inquiries, or specific concerns, feel free to contact us via email. You can reach us at either ecosystem-feedback@nuvemshop.com.br or ecosystem-feedback@tiendanube.com.