This social media api app allows users to perform CRUD operations like a real social media app on posts and users. It uses MongoDB as the database to store data, Next.js API for handling server-side logic and Node.js for server-side runtime environment. The app provides a seamless experience for it's API's.
To run this project on your local machine, follow these steps:
-
Clone the Repository: Clone this repository to your local machine:
-
Install Dependencies: Install the necessary dependencies using npm or yarn:
npm install
or
yarn install
or
pnpm install
-
Setup Environment Variables: Create a
.env
file in the both of your project directories and add the variables mentioned in the.env.sample
-
Start the Development Server: Run the following command to start the development server:
npm start
-
Access the App: Open your web browser and navigate to
http://localhost:3000[server]
, to access the app. You can now use the app locally on your machine, connected to your MongoDB database using the URI specified in the.env
file.