tohopedia
ℹ️ A tokopedia clone web app created with NextJS (TypeScript) and GraphQL (Go)
📂 The databases used in this app are MySQL (for development and testing) and PostgreSQL (for deployment)
🌐 The frontend side was deployed using Vercel, while the backend was deployed using Heroku
To view this app online you can visit: https://toped.vercel.app/
For testing, you may use the following credentials:
- Email:
jevon@mail.com
- Password:
jevon123
To develop and run this app locally, you can follow the following steps:
- Clone this repository:
git clone https://github.com/je-von/tohopedia.git
- Go to "backend" directory and create .env file.
cd backend
The environment variables you need to provide are:
DB_HOST=host_name
DB_PORT=port_number
DB_DATABASE=db_name
DB_USER=user_name
DB_PASSWORD=password
# for the DB_CONNECTION, you can choose between 'mysql' or 'pgsql'
DB_CONNECTION=mysql
# if you choose pgsql, you need to provide:
# DATABASE_URL=postgresql://[user[:password]@][netloc][:port][/dbname][?param1=value1&...]
- After creating your own database and configure the environment variables, you can run the server
go run server.go
- Run the frontend app
cd ../frontend
npm run dev
👁️ Web app preview:

Disclaimer: This project was created for learning purposes.