R'Coffee Server is the backend component of the R-Coffee application, designed following the MVC (Model-View-Controller) architecture. This project is developed using Node.js, Express.js and Bootstrap 4 custom from Breeze-Free-Bootstrap-Admin-Template , providing APIs for the app and CRUD operations for management and authentication. Read more about Frontend
-
Clone the repository:
git clone https://github.com/SUMMER24-R-Coffee/R-Coffee_Server.git cd R-Coffee_Server
-
Install dependencies:
npm install
-
Set up environment variables: Create a
.env
file in the root directory and add the necessary configurations:# MySQL DB_HOST=your_mysql_host DB_USER=your_mysql_user DB_NAME=your_mysql_database DB_PASSWORD=your_mysql_password DB_PORT=3306 # Cloudinary CLOUDINARY_CLOUD_NAME=your_cloudinary_cloud_name CLOUDINARY_API_KEY=your_cloudinary_api_key CLOUDINARY_API_SECRET=your_cloudinary_api_secret # Email EMAIL_USER=your_email_user EMAIL_PASS=your_email_password #Stripe STRIPE_SECRET_KEY = your_secret_key
-
Run the server:
npm start
- Access the server at
http://localhost:3000
.
For any inquiries or feedback, please reach out to [email protected].
This is not the final version, this application will be further improved in the future.