Connect Strapi with Frontend
Step-by-Step Guide
Step 1. Run Backend
- First run the backend strapi project.
Step 2. Login the strapi admin dashboard
- You can login from strapi admin and if no account, need to signup first.
Step 3. Navigate to API Tokens settings
- First go to
Settings
from left nav, then go toAPI Tokens
Step 4. Create API Token:
- Here create an API token and save for later use
Step 5. Add frontend environment variables:
- Add the following environment variables
STRAPI_ENDPOINT="Your_Strapi_Endpoint"
STRAPI_AUTH_TOKEN="Your_Strapi_API_Token"
ℹ️
NOTE: If you have any questions, encounter issues, or need assistance, feel free to reach out to us. We’re here to help and ensure you have a smooth experience. You can direct contact us or through our community (opens in a new tab) forum for any immediate support. Thanks!