https://github.com/roc41d/real-time-chat-backend-with-express-and-directus
Real-Time Chat Application with Directus
https://github.com/roc41d/real-time-chat-backend-with-express-and-directus
Last synced: 2 months ago
JSON representation
Real-Time Chat Application with Directus
- Host: GitHub
- URL: https://github.com/roc41d/real-time-chat-backend-with-express-and-directus
- Owner: roc41d
- Created: 2024-03-19T01:23:11.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-19T02:51:14.000Z (about 1 year ago)
- Last Synced: 2025-01-21T21:13:24.569Z (4 months ago)
- Language: JavaScript
- Size: 92.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Real-Time Chat Application with Directus
## Prerequisites
Make sure you have Docker and Docker Compose installed on your machine.
- Docker: [Install Docker](https://docs.docker.com/get-docker/)
- Docker Compose: [Install Docker Compose](https://docs.docker.com/compose/install/)## Setup
Clone repository to your local machine:
```
git clone [email protected]:roc41d/real-time-chat-backend-with-express-and-directus.git
```
Navigate to the project directory:
```
cd real-time-chat-backend-with-express-and-directus
```
Create a `.env` file in the root of the project and copy content from `.env.example` file:
```
cp .env.example .env
```
Build and Run the project:
```
docker-compose up --build
```
Access Directus Admin Panel:
- Once the containers are up and running, you can access the Directus admin panel by opening a web browser and navigating to `http://localhost:8055`.
- Use the provided `ADMIN_EMAIL` and `ADMIN_PASSWORD` to log in.Access Node.js Application:
- The Node.js application should be accessible at `http://localhost:3000`.
- The Swagger documentation for the API should be accessible at `http://localhost:3000/api/v1/docs`.Stopping the application:
- To stop the containers, press `Ctrl + C` in the terminal where the containers are running.