https://github.com/miguelzacca/node-web-chat
Nodejs web chat with MongoDB Cloud (AWS) and Express.
https://github.com/miguelzacca/node-web-chat
Last synced: about 2 months ago
JSON representation
Nodejs web chat with MongoDB Cloud (AWS) and Express.
- Host: GitHub
- URL: https://github.com/miguelzacca/node-web-chat
- Owner: miguelzacca
- License: mit
- Created: 2024-04-20T11:09:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-28T17:49:38.000Z (over 1 year ago)
- Last Synced: 2025-02-21T23:33:17.371Z (11 months ago)
- Language: CSS
- Homepage:
- Size: 198 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Project under construction
Nodejs web chat with MongoDB Cloud (AWS) and Express.
## Database
To use the database, create an account with MongoDB Atlas.
- Create and configure your free Cluster.
- Get the connection string, your username and password.
- Configure your `.env` file in the root of the backend directory, follow the template
```
PORT=8000
DB_USER=
DB_PASS=
```
## Installation (backend)
To install dependencies, use
```
npm install
```
## Use
### frontend
- Adjust the GET and POST `fetch` path. You can use ngrok to make your local port where the API will be running available to the web.
- After having the API online, its address must be placed in `fetch`, this way, the app will be working.
### backend
After installing the dependencies, use
```
node src/index.js
```
## ngrok
Link to ngrok website https://ngrok.com/. After configuring your ngrok token, use
```
ngrok http
```
Okay, now just get the link provided.
## Preview
https://definitivechat.netlify.app