Skip to content

Joyosmit/URL_Shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

URL Shortener

Description A brief description of the project, its purpose, and features.

Getting Started

Prerequisites

  1. Node.js: Make sure you have Node.js installed. You can download it here.
  2. MongoDB Atlas: Set up a MongoDB Atlas account and create a database. Get your connection string (MONGODB_URI).
  3. Redis: Make sure Redis is installed and running. If using Docker, expose port 6379.

Server Setup

  1. Navigate to the server directory:
cd server
  1. Create a .env file and add your MongoDB connection string as:
MONGODB_URI=<your_mongodb_atlas_connection>
PORT=<any_port_number>
  1. Install Redis locally:

Follow instructions from the official Redis website.

  1. Running Redis with Docker:
docker run -p 6379:6379 redis
  1. Install server dependencies:
npm install
  1. Start the server:
npm run start

The server should now be running.

Client Setup

  1. Navigate to the client directory:
cd client
  1. Install client dependencies:
npm install
  1. Start the client:
npm run start

The client should now be running and accessible in your browser.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published