-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
626 additions
and
572 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,5 @@ | |
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,10 +50,10 @@ Urban Fashion Shop is an online fashion store web application built with React. | |
4. Start the development server: | ||
|
||
``` | ||
yarn start | ||
yarn dev | ||
``` | ||
|
||
The app will be running at [http://localhost:3000](http://localhost:3000). | ||
The app will be running at [http://localhost:5173](http://localhost:5173). | ||
|
||
## Usage | ||
|
||
|
@@ -69,12 +69,15 @@ Urban Fashion Shop provides an intuitive and seamless user experience for browsi | |
## Built with | ||
|
||
- [ReactJS](https://reactjs.org/) | ||
- [Redux Toolkit](https://redux-toolkit.js.org/) | ||
- [TypeScript](https://www.typescriptlang.org/) | ||
- [React Router](https://reactrouter.com/en/main) | ||
- [React Select](https://react-select.com/home) | ||
- [FakeStoreAPI](https://fakestoreapi.com/) | ||
- [Axios](https://axios-http.com/) | ||
- [React Hook Form](https://react-hook-form.com/) | ||
- [TailwindCSS](https://tailwindcss.com/) | ||
- [Flowbite](https://flowbite.com/) | ||
- [Axios](https://axios-http.com/) | ||
- [Vite](https://vitejs.dev/) | ||
- [zod](https://zod.dev/) | ||
- Mobile-first workflow | ||
|
||
### Editor | ||
|
@@ -91,5 +94,3 @@ If you have any questions or suggestions regarding urban fashion shop, feel free | |
|
||
- Email: [[email protected]](mailto:[email protected]) | ||
- GitHub: [hutamatr](https://github.com/hutamatr) | ||
|
||
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
// import { AxiosResponse, GenericAbortSignal } from 'axios'; | ||
|
||
// import { axiosPrivate, axiosPublic } from '@utils/axiosInterceptor'; | ||
|
||
// import { | ||
// ICategoriesData, | ||
// INewProductToCart, | ||
// IProductData, | ||
// IProductsData, | ||
// } from 'types/types'; | ||
|
||
// export async function register( | ||
// { username, email, password }: IRegister, | ||
// signal?: GenericAbortSignal | undefined | ||
// ) { | ||
// const res: AxiosResponse<IUser> = await axiosPublic.post( | ||
// '/auth/local/register', | ||
// { | ||
// username, | ||
// email, | ||
// password, | ||
// }, | ||
// { | ||
// signal, | ||
// } | ||
// ); | ||
|
||
// return res; | ||
// } | ||
|
||
// export async function login( | ||
// { email, password }: ILogin, | ||
// signal?: GenericAbortSignal | undefined | ||
// ) { | ||
// const res: AxiosResponse<IUser> = await axiosPublic.post( | ||
// '/auth/local', | ||
// { | ||
// identifier: email, | ||
// password, | ||
// }, | ||
// { | ||
// signal, | ||
// } | ||
// ); | ||
|
||
// return res; | ||
// } | ||
|
||
// export async function refresh(token: string) { | ||
// const res: AxiosResponse<IRefreshToken> = await axiosPublic.post( | ||
// '/token/refresh', | ||
// { | ||
// refreshToken: token, | ||
// } | ||
// ); | ||
|
||
// return res; | ||
// } | ||
|
||
// export async function getProducts(signal?: GenericAbortSignal | undefined) { | ||
// const res: AxiosResponse<IProductsData> = await axiosPublic.get( | ||
// '/products?populate=*', | ||
// { | ||
// signal, | ||
// } | ||
// ); | ||
// return res; | ||
// } | ||
|
||
// export async function getProduct( | ||
// productId: string, | ||
// signal?: GenericAbortSignal | undefined | ||
// ) { | ||
// const res: AxiosResponse<IProductData> = await axiosPublic.get( | ||
// `/products/${productId}?populate=*`, | ||
// { | ||
// signal, | ||
// } | ||
// ); | ||
// return res; | ||
// } | ||
|
||
// export async function getCategories(signal?: GenericAbortSignal | undefined) { | ||
// const res: AxiosResponse<ICategoriesData> = await axiosPublic.get( | ||
// '/categories', | ||
// { | ||
// signal, | ||
// } | ||
// ); | ||
// return res; | ||
// } | ||
|
||
// export async function postPayment( | ||
// products: INewProductToCart[], | ||
// accessToken: string, | ||
// signal?: GenericAbortSignal | undefined | ||
// ) { | ||
// const res: AxiosResponse<{ | ||
// stripeSession: { | ||
// id: string; | ||
// }; | ||
// }> = await axiosPrivate.post( | ||
// '/orders', | ||
// { products }, | ||
// { | ||
// signal, | ||
// headers: { | ||
// Authorization: `Bearer ${accessToken}`, | ||
// }, | ||
// } | ||
// ); | ||
// return res; | ||
// } |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
5199a6e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
unknown-shopping-store – ./
unknown-shopping-store-hutamatr.vercel.app
unknown-shopping-store-git-main-hutamatr.vercel.app
urban-fashion-shop.vercel.app