Welcome to the setup guide for the WhatsApp Status backend! Follow these steps to get your backend up and running locally.
Before you begin, ensure you have the following installed and set up on your machine:
- Node.js installed.
- MongoDB installed and running locally, or access to MongoDB Atlas.
- An AWS account with an S3 bucket created.
-
Clone this repository to your local machine:
git clone https://github.com/{username}/whatsapp-status.git
-
Navigate to the project directory:
cd whatsapp-status
-
Install dependencies using npm:
npm install
-
Create a
.env
file in the root directory of the project. -
Add the following credentials to the
.env
file:MONGO_URL='Your_MongoDB_URI' PORT=3000 BUCKET='Your_Bucket_Name' AWS_ACCESS_KEY='Your_AWS_Access_Key' AWS_SECRET_KEY='Your_AWS_Secret_Key' AWS_REGION='Your_AWS_Region'
Replace the placeholders with your actual MongoDB URI, bucket name, AWS access key, AWS secret key, and AWS region.
Start the server by running:
node server.js