Blanja Web is a web-based e-commerce application that allows buyers to order products of their choice. Consists of 2 types of users, namely buyers and sellers.
- Order product
- History transaction
- Add product (sellers only)
- Chat
- Edit profile
- Reset Password
- etc
- Open your terminal or command prompt
- Type
git clone https://github.com/Baruak-da-Familia/blanja-frontend.git
- Open the folder and type
npm install
for install dependencies - Create file .env in root directory with the following contents :
REACT_APP_API_URL = "https://host_backend:port_backend"
REACT_APP_SOCKET_URL = "https://host_backend:port_socket"
REACT_APP_WEB_URL = "https://host_frontend:port_frontend"
Example :
- https://host_backend:port_backend is https://localhost:8000
- https://host_backend:port_socket is https://localhost:8001
- https://host_frontend:port_frontend is https://localhost:3000
so, you can write in .env file like this :
REACT_APP_API_URL = "https://localhost:8000"
REACT_APP_SOCKET_URL = "https://localhost:8001"
REACT_APP_WEB_URL = "https://localhost:3000"
- Before run this, you must installation backend and then run backend
- Type
npm start
in terminal for running this project. - If you want to build, type
npm run build
.
This is Blanja Web build version, let's try it.
RESTful API for this web application, clone this for development Blanja Web.