diff --git a/.env.local b/.env.local new file mode 100644 index 0000000..5c8c748 --- /dev/null +++ b/.env.local @@ -0,0 +1 @@ +NEXT_PUBLIC_API_URL= https://dummyjson.com \ No newline at end of file diff --git a/.gitignore b/.gitignore index fd3dbb5..5ab2f9b 100644 --- a/.gitignore +++ b/.gitignore @@ -25,9 +25,6 @@ npm-debug.log* yarn-debug.log* yarn-error.log* -# local env files -.env*.local - # vercel .vercel diff --git a/README.md b/README.md index 8762566..371742d 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,6 @@ You can start editing the page by modifying app/page.tsx. The page auto-updates Project Structure Login: Navigate to the login page to authenticate users. -Signup: Navigate to the signup page to register new users. Table Data: The home page fetches and displays product data from Dummy JSON. Review Modal: Click the "View Reviews" button in any table row to open a modal displaying the product reviews. API @@ -53,9 +52,12 @@ This project uses the Dummy JSON API to fetch product data. The data is displaye Components Login Component: Handles user login functionality. -Signup Component: Handles user registration functionality. Table Component: Displays product data in a table format. Review Modal Component: Displays product reviews in a modal when the "View Reviews" button is clicked. + +.env +As there is no secret key in the .env file, that's why we push it into the repository, otherwire we follow the best practice. + Contributing If you would like to contribute to this project, please fork the repository and submit a pull request.