This is the backend code for an e-commerce website AshaTai.
This backend provides all the apis required by the fronted for the smooth running of the web app.
This project uses the following technologies:
- Node.js
- Express.js
- Nodemailer
- Mongoose
- Bcrypt for password hashing
- Cashfree APIs for payment integration
- Full CRUD APIs for products, orders, and product categories
- Signing in and signing up users with password hashing
- Cashfree payment integration
- Sorting and pagination logic for both products and order APIs
- Sending emails on order confirmation
- Resetting passwords
- And more!
To run the project, follow these steps:
- Clone the repository to your local machine.
- Rename the
.env-local
file to.env
and add the appropriate environment variables. - Install the dependencies by running
npm install
. - Start the server by running
node server.js
.
To run the project, you'll need to add the following environment variables to your .env
file:
MONGODB_DATABASE_URL
: your_mongodb_url.CASHFREE_APP_ID
: your_cashfree_app_id.CASHFREE_SECRET_KEY
: your_cashfree_secret_key.NODEMAILER_MAIL
: your_email_to_send_mails.NODEMAILER_MAIL_PASSWARD
: your_mail_passward.
This project is licensed under the MIT License.