An awesome online shop application based on website
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
Welcome to the Urban Elegance Github repository! Here, you'll find the source code for our sleek and sophisticated online shop application. Built with modern technologies and a focus on user experience, our application aims to provide customers with an effortless shopping experience.
Main technology used to built this application are listed below:
To get started with this project locally, follow below steps:
Make sure you have Docker, and package manager (either npm or yarn) installed
FYI: This project uses yarn as the client package manager, but you're free to use npm too.
Below steps will guide you through the local installation process of this application
- Clone the repo
git clone https://github.com/yshplsngh/shop-mart.git
2. Complete the .env variable at /server directory Rename .env.example file at/config
directory become.env
, then fill the value for every key. Below is the guideline for filling the .env value:
Key What to Fill Example Value PORT Your server port 5000 MONGO_URL Your MongoDB connection URL mongodb+srv://username:[email protected]/DBName?retryWrites=true&w=majority ACCESS_TOKEN_SECRET Your JWT access token secret NzeWG39JJNWASRKTeM85Ki77yZbdXZapvfIfepxz7d2WG REFRESH_TOKEN_SECRET Your JWT refresh token secret KS3VuMkQkGzzQ5BhMyxgpGV2xelxR7B7UummWAG5r5c XENDIT_API_KEY Your Xendit API key xnd_development_jdsfkdskfdkkkdkkk222: - Complete the key.ts variabel at /client directory
Rename key.example.ts file at
/config
directory becomekey.ts
, then fill the value for every key. Below is the guideline for filling the key.ts value:
Key What to Fill Example Value LOCATION_API_KEY Your GoAPI API key 5abc6de7-9a11-9b11-1822-18saj212 BITESHIP_AUTHORIZATION_KEY Your Biteship authorization key biteship_live.hhjkkhkjihi78 XENDIT_API_KEY Your Xendit API key xnd_development_jdsfkdskfdkkkdkkk222: CLOUDINARY_PRODUCTS_FOLDER_ID Your Cloudinary "products" folder ID for this project abcdefgh CLOUDINARY_USERS_FOLDER_ID Your Cloudinary "users" folder ID for this project abcdefgh CLOUDINARY_CLOUD_NAME Your Cloudinary cloud name abcd8efgh - Go to
docker-compose.yml
at root directory and replace theports
value at theserver
section to the port value at yout .env file. For example, your PORT value at .env is 5000, so theports
value at the docker-compose.yml is5000:5000
- Go to
package.json
at/client
directory and replace theproxy
port to the port value at your .env file. For example, your PORT value at .env is 5000, so theproxy
value ishttp://server:5000
- Open your terminal, and
cd
to the root directory, then rundocker-compose build
command - Lastly, run
docker-compose up
command at your terminal to start the application
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.