https://github.com/fazil2915/Ecommerce_node
Node with Postgresql and hosted on Aws Ec2 (deployment status : ec2 instance stopped)
https://github.com/fazil2915/Ecommerce_node
docker-compose expressjs nodejs postgresql workflow
Last synced: about 1 month ago
JSON representation
Node with Postgresql and hosted on Aws Ec2 (deployment status : ec2 instance stopped)
- Host: GitHub
- URL: https://github.com/fazil2915/Ecommerce_node
- Owner: fazil2915
- Created: 2024-09-12T14:36:06.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-22T17:30:15.000Z (almost 2 years ago)
- Last Synced: 2024-10-14T14:09:40.107Z (over 1 year ago)
- Topics: docker-compose, expressjs, nodejs, postgresql, workflow
- Language: JavaScript
- Homepage: http://54.163.26.31:5000/api/user/buyer/get-Products
- Size: 21.7 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ecommerce_node
## Overview
This project is a RESTful API service for an e-commerce platform, built using Node.js, Express.js, and PostgreSQL. It provides a robust backend solution for managing sellers and buyers in the e-commerce platform.
## Features
* AUTHENTICATION
* PRODUCT MANAGEMENT
* CART MANAGEMENT
## Api Documentation
All complete details have covered in this link [Details](https://documenter.getpostman.com/view/25678286/2sAXqp7iGi).
## Technologies Used
- Backend: Node.js, Express.js for building RESTful APIs.
- Database: PostgreSQL
- Orm: Prisma
- Deployment: Aws Ec2 using Gh runner (Autodeploy)
- Others: docker, docker-compose
## Project config
`````
git clone [repo_url] (*main)
`````
#### Setup env
```````
DATABASE_URL= ""
PORT=""
JWT_SECERET=""
```````
#### Prisma setup
```````
npx prisma init
npx prisma migrate dev --name init
npx prisma generate
```````
## Deployment details
(api url without token verify others api's can explore in api documentation)
[Live](http://54.163.26.31:5000/api/user/buyer/get-Products).
#### Gh workflow Working
* Trigger on push to the main branch.
* Build the application using Docker Compose, containerize it, and push the Docker images to a Docker registry.
* Deploy by cloning the Git repository on the server, pulling the latest Docker image from the registry, and running Docker Compose.
* Detailed with comments on [Gh work flow](https://github.com/fazil2915/Assignment_nodejs/blob/main/.github/workflows/main.yml)