Welcome to the AutoSpa Server repository! This guide will walk you through the steps required to set up and run the backend of the AutoSpa project on your local machine.
Follow these instructions to get the server up and running locally.
Ensure that you have the following software installed on your machine:
- Git: Version control system
- Node.js: Version 20.9.0 (recommended)
- npm: Node package manager (comes with Node.js)
Start by cloning the repository with the following command:
git clone https://github.com/syedfarhanreza/autospa-server.git
Install all the necessary dependencies by running the following command in the terminal: npm install
npm install
Create a .env file in the root directory of the project and add your MongoDB credentials:
DATABASE_URL = your_mongo_db_connection_string
NODE_ENV="development"
JWT_ACCESS_SECRET=secret key for jwt token
JWT_REFRESH_SECRET=secret key for jwt token
SALT_ROUND= 12
CN_Cloud_name=Clodinary cloud name
CN_Api_key=Clodinary api key
CN_Api_secret=Clodinary api secret
CN_Folder=Clodinary folder name
MAILPASS=gmail id app password
MAIL=email address
SIGNATURE_KEY=dbb74894e82415a2f7ff0ec3a97e4183
STORE_ID=aamarpaytest
PAYMENT_URL= https://sandbox.aamarpay.com/jsonpost.php
Once you have set up the environment variables, you can run the project locally.
npm run start:dev
http://localhost:5000