LosBlancos is a cutting-edge e-commerce platform designed to offer a seamless shopping experience while empowering store administrators with a robust Content Management System (CMS). The platform integrates a secure payment gateway for smooth transactions and includes real-time shipping cost calculation, ensuring customers can easily view the total price before completing their purchase.
LosBlancos enhances user interaction with a dynamic real-time dashboard, giving administrators instant insights into crucial activities such as stock availability and new customer orders. The platform's notification system promptly alerts administrators when a product is out of stock or when a new order is placed, ensuring efficient management and timely responses.
Additionally, LosBlancos integrates Raja Ongkir, a popular shipping cost service, allowing customers to calculate accurate shipping fees based on their location. This ensures transparent pricing and provides a smooth checkout experience for both customers and administrators.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Frontend
-scss: for stayling
-React Hook Form: For Form validation
-axios-interceptors: For making HTTP requests
-rechart js: For making chart
-Redux Toolkit : For State management feature
-next-auth : For authentication
-Sonner : For toast notification
-socket.io : For real-time data transmission.
-lucide: icon
-jest: unit testing
Backend
-mongoose: For interacting with MongoDB
-bcryptjs: For hashing passwords
-jsonwebtoken: For authentication
-next-auth:For authencatication
-cloudinary: for upload image
-midtrans: for payment gateway
-nodemailer: for send email
-express: For creating the server-socket
-socket-io: For real-time data transmission.
-
Midtranns = https://midtrans.com
-
Rajaongkir = https://rajaongkir.com
-
Google = https://console.cloud.google.com
Before you begin, ensure you have the following installed on your machine:
- Node.js: Download and install Node.js
- npm: Node.js package manager (comes with Node.js installation)
-
Clone the repository:
git clone https://github.com/anwarhakim31/LosBlancos.git
-
Navigate to root project directory and install depedencies:
cd LosBlancos npm install -
Navigate to socket-server directory and install depedencies
cd socket-server npm install
- Create a .env file in the root next.js of your project.
NEXT_PUBLIC_PROCESS = development
DATABASE_URL =
NEXTAUTH_SECRET =
NEXTAUTH_URL=http://localhost:3000
NEXT_PUBLIC_BASE_URL = /api
GOOGLE_OAUTH_CLIENT_ID =
GOOGLE_OAUTH_CLIENT_SECRET =
NEXT_PUBLIC_CLOUD_PRESET =
NEXT_PUBLIC_CLOUD_NAME =
NEXT_PUBLIC_CLOUD_APIKEY =
NEXT_PUBLIC_CLOUD_SECRETKEY =
//binderbyte untuk mengambil provinsi, kota BINDERBYTE_KEY =
RAJAONGKIR_KEY =
MIDTRANS_SECRET_SERVER_KEY =
MIDTRANS_BASE_URL = https://api.sandbox.midtrans.com/v2
NEXT_PUBLIC_SOCKET_URL = http://localhost:4000
NEXT_PUBLIC_DOMAIN = http://localhost:3000
EMAIL_ADMIN =
PASSWORD_APLIKASI_EMAIL =
- Create a .env file in the server-socket of your project.
ORIGIN = http://localhost:3000
MONGODB_URL =
-
To start the root , run:
npm run dev
-
To start the socket-server run :
npm run dev
Deploy the dist directory to your hosting platform of choice.








