- FEATURES
- PREREQUISITES
- SETUP
- RUNNING THE SCRIPT
- ERROR HANDLING
- HOSTING
- USED PACKAGES
- TOOLS
- ARTICLES
- DO NOT FORGET TO DO
- TUTORIALS
- INSPIRATIONS
- CONTRIBUTE
- CONTRIBUTORS
- SPECIAL THANKS
- LICENSE
- CONTACT
- Create short URL
- Redirect to the original URL
- QR code
- URL Analytics
- Node v18
- PNPM v10
-
Clone the repository and navigate to the directory:
git clone https://github.com/montasim/quillink.git cd quillink
-
Install the dependencies:
pnpm install
-
Configuring the Environment:
Create a
.env.development
or.env.staging
or.env.production
file in the root directory of the project and populate it with the necessary environment variables. See the .env.example file for an example.
-
Running the Application:
To start the application in development mode, use:
pnpm dev
This will run the server with nodemon, automatically restarting when any changes are made.
-
To build the application, use:
pnpm build
This will build the application.
-
To run the application, use:
To run the application, use:
pnpm start
This will run the project.
-
Code Prettier:
-
To check if files are formatted correctly:
pnpm prettier:check
-
To format files:
pnpm prettier:fix
-
-
Build the Docker Compose Services:
pnpm docker:build-dev
-
Run the Docker Compose Services:
pnpm docker:run-dev
-
Stop the Containers:
pnpm docker:stop-dev
-
Rebuild the Containers:
pnpm docker:rebuild-dev
Step-by-step guide on setting up your own Vercel instance:
Vercel is the recommended option for hosting the files since it is free and easy to set up.
- Go to vercel.com.
- Click on
Log in
. - Sign in with GitHub by pressing
Continue with GitHub
. - Sign in to GitHub and allow access to all repositories if prompted.
- Fork this repo.
- Go back to your Vercel dashboard.
- To import a project, click the
Add New...
button and select theProject
option. - Click the
Continue with GitHub
button, search for the required Git Repository and import it by clicking theImport
button. Alternatively, you can import a Third-Party Git Repository using theImport Third-Party Git Repository ->
link at the bottom of the page. - Create a personal access token (PAT) here and enable the
repo
anduser
permissions (this allows access to see private repo and user stats). - Copy all the .env.development file as environment variables in the Vercel dashboard.
- Click deploy, and you're good to go. See your domains to use the API!
Contributions are always welcome! Please read the contribution guidelines and contributor license agreement.
|
|
|
|
|
|
|
---|