/jar-chat-app-aws-s3-mongo-multer

Getting Access Denied trying to save image to AWS S3. Interesting UI. Does not work on Vercel. JAR is chatting web app that lets you connect to people around the world. You can create rooms and chat with anyone around the globe.

Primary LanguageJavaScriptMIT LicenseMIT

jar-chat-app-aws-s3-mongo-multer

  • Getting Access Denied trying to save image to AWS S3. Interesting UI. Does not work on Vercel. JAR is chatting web app that lets you connect to people around the world. You can create rooms and chat with anyone around the globe.

πŸš€ JAR is chatting web app that lets you connect to people around the world. You can create rooms and chat with anyone around the globe. πŸš€

https://github.com/coding-to-music/jar-chat-app-aws-s3-mongo-multer

https://jar-chat-app-aws-s3-mongo-multer.vercel.app

From / By https://github.com/Creatoon/Jar-web-app

Environment variables:

MONGO_URI="mongodb+srv://userid:password@cluster0.host.mongodb.net/jar-chat-app-aws-s3-mongo-multer?retryWrites=true&w=majority"

APP_AWS_S3_BUCKET="jar-chat-app-aws-s3-mongo-multer"
APP_AWS_ACCESS_KEY_ID=""
APP_AWS_SECRET_ACCESS_KEY=""
APP_AWS_REGION="us-east-1"

JWT_SECRET="AnotherSecret"
JWT_EXPIRES_IN=90d
JWT_COOKIE_EXPIRES_IN=90

SECURE_ROOM_PASSWORD="SecretHere"

NODE_ENV=development
PORT=3000

GitHub

git init
git add .
git remote remove origin
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:coding-to-music/jar-chat-app-aws-s3-mongo-multer.git
git push -u origin main

ncu node upgrade package version

ncu

Output

Checking /mnt/volume_nyc1_01/jar-chat-app-aws-s3-mongo-multer/package.json
[====================] 37/37 100%

 autoprefixer             ^10.0.1  β†’   ^10.4.13
 aws-sdk                 ^2.766.0  β†’  ^2.1272.0
 axios                    ^0.20.0  β†’     ^1.2.1
 bufferutil                ^4.0.1  β†’     ^4.0.7
 cookie-parser             ^1.4.5  β†’     ^1.4.6
 dotenv                    ^8.2.0  β†’    ^16.0.3
 eslint                   ^5.16.0  β†’    ^8.29.0
 eslint-config-airbnb     ^17.1.0  β†’    ^19.0.4
 eslint-config-prettier    ^4.1.0  β†’     ^8.5.0
 eslint-plugin-import     ^2.17.2  β†’    ^2.26.0
 eslint-plugin-jsx-a11y    ^6.2.1  β†’     ^6.6.1
 eslint-plugin-node        ^8.0.1  β†’    ^11.1.0
 eslint-plugin-prettier    ^3.0.1  β†’     ^4.2.1
 eslint-plugin-react      ^7.12.4  β†’   ^7.31.11
 express                  ^4.17.1  β†’    ^4.18.2
 express-mongo-sanitize    ^2.0.0  β†’     ^2.2.0
 express-rate-limit        ^5.1.3  β†’     ^6.7.0
 helmet                    ^4.1.1  β†’     ^6.0.1
 mongoose                 ^5.10.6  β†’     ^6.8.0
 multer-s3                 ^2.9.0  β†’     ^3.0.1
 multer-sharp-s3           ^0.2.1  β†’     ^0.2.5
 prettier                 ^1.17.0  β†’     ^2.8.1
 pug                       ^3.0.0  β†’     ^3.0.2
 sharp                    ^0.26.1  β†’    ^0.31.2
 slugify                   ^1.4.5  β†’     ^1.6.5
 socket.io                 ^2.3.0  β†’     ^4.5.4
 socket.io-client          ^2.3.0  β†’     ^4.5.4
 utf-8-validate            ^5.0.2  β†’    ^5.0.10
 validator               ^13.1.17  β†’    ^13.7.0

Run ncu -u to upgrade package.json

Attempting to upload an image to the AWS S3 bucket

PATCH /api/v1/users/updateMe 403 234.172 ms - -
GET /bundle.js.map 404 41.971 ms - 1017

Showing Access Denied as an error message

Node.js CI Join the chat at https://gitter.im/Jar-web-app/community

JaaR WebApp

Source code of JAR web app.

Website Link

Click Here To Visit Website

Video Tutorial

Click Here To Visit Youtube Video

About

JAR is web app that lets you connect to people around the world. You can create rooms and chat with anyone around the globe.

How to install

  1. Install NodeJS version 12X or greater (12X Highly Recomended).

  2. Then npm install to download all dependencies.

Commands to run the project

  1. npm run dev (For development enviroment)

Screenshots From Website

Login Page

Screenshot from 2021-04-19 22-28-04

Create Room Page

Screenshot from 2021-04-19 22-28-54

Chat Room Page

Screenshot from 2021-04-19 22-28-37

Contribution Guidelines πŸ—

Are we missing any of your favorite features, which you think you can add to it❓ We invite you to contribute to this project and improve it further

To start contributing, follow the below guidelines:

🌟. Star🌟 the project to bookmark and appreciate the work.

0. Take a look at the existing issues or create your own issues. Wait for the Issue to be assigned to you after which you can start working on it.

1. Fork Jar-web-app repository.

2. Clone your forked copy of the project.

git clone --depth 1 https://github.com/<your_user_name>Jar-web-app.git

3. Navigate to the project directory πŸ“ .

cd Jar-web-app

4. Add a reference(remote) to the original repository.

git remote add upstream https://github.com/Creatoon/Jar-web-app.git

5. Check the remotes for this repository.

git remote -v

6. Always take a pull from the upstream repository to your master branch to keep it at par with the main project(updated repository).

git pull upstream development

7. Create a new branch.

git checkout -b <your_branch_name>

8. Perform your desired changes to the code base.

9. Track your changes:heavy_check_mark: .

git add .

10. Check for the changes .

git status

11. Commit your changes .

git commit -m "Relevant message"

12. Push the committed changes in your feature branch to your remote repo.

git push -u origin <your_branch_name>

13. To create a pull request, click on compare and pull requests. Please ensure you compare your feature branch to the desired branch of the repo you are suppose to make a PR to.

14. Add appropriate title and description to your pull request explaining your changes and efforts done.

15. Click on Create Pull Request.

16. Sit back patiently and relax while the project maintainers review your PR. Please understand, at times the time taken to review a PR can vary from a few hours to a few days.

Levels & Points For LGMSOC

Level 0 5
Level 1 10
Level 2 15
Level 3 30
Level 4 45

Code of Conduct

Click to read

License

MIT License