Welcome to the iCustomer backend project. This repository contains the server-side code for the iCustomer application, handling all the API requests, database interactions, and authentication processes.
Follow these steps to set up and run the iCustomer backend on your local machine.
Start by cloning the repository to your local machine:
git clone https://github.com/akarj/iCustomer-backend.gitNavigate to the project directory and install the necessary dependencies using your preferred package manager. You can use bun or npm:
bun i
# or
npm iCreate a .env file in the root directory of the project and add the following environment variables:
PORT={{Backend Application Running Port}}
GOOGLE_CLIENT_ID={{Google OAuth2.0 Client ID}}
GOOGLE_CLIENT_SECRET={{Google OAuth2.0 Client Secret}}
MONGO_URI={{MongoDB Atlas URI}}
JWT_SECRET={{Your JWT Secret}}- For generating GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET, please visit medium
- For generating MONGO_URI, please visit this article
To start the backend server, use the following command:
bun run dev
# or
npm run devOnce the server is running, you can access the application at http://localhost:3000 (or the respective PORT you've set).
Visit this for live application API access.