Skip to content

Latest commit

 

History

History
60 lines (47 loc) · 1.14 KB

File metadata and controls

60 lines (47 loc) · 1.14 KB

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.