Skip to content

ncdai/domain-parking

Repository files navigation

Domain Parking

Overview

The application allows you to create a temporary website: "The domain name is for sale" or "The website will be launched soon" with a simple and modern interface. The website will display your domain name, and the notification text.

  • The application automatically creates a cover photo when you share a domain name on social networks.

  • The application is especially useful when you want to apply your website to multiple domains. Instead of having to deploy a website for each domain name, now you only need to deploy the website once on a server, and point other domains to the Server IP, this helps save a lot of time and effort.

  • Demo: https://design.edu.vn

Get Started

Configure ENV

Create .env file with the following content:

PORT=5558
OG_URL=https://chanhdai.com/og/domain

Configure Domain Display

  • domain-list.js: List the domain names that are for sale.
  • domain-case.js: Specify how domain names are displayed.
  • domain-logo.js: Specify the logo to be displayed for each domain.

Install Packages

yarn install

Start Development

yarn tailwind:watch
yarn dev

Access http://localhost:5558 to see amazing results.

Deploy to Production

Prerequisites

Ubuntu 20.04 server [https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-20-04]

Start App

yarn install
yarn pm2:start

Configure Nginx

Update the nginx.conf file content to match your domain name. Then run the following command:

sudo ln -s /root/domain-parking/nginx.conf /etc/nginx/sites-enabled/domain-parking

nginx -t
systemctl restart nginx

Configure Domains

  1. Add your domains to Cloudflare [https://developers.cloudflare.com/fundamentals/setup/manage-domains/add-site/]
  2. Point domain names to your Server IP [https://developers.cloudflare.com/dns/manage-dns-records/how-to/create-dns-records/]
  3. Access your domains to see amazing results.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published