GithubHelp home page GithubHelp logo

luk3skyw4lker / file-upload Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 61 KB

A file upload application using Node.js, React and Amazon S3 technolgies.

HTML 12.39% CSS 6.70% JavaScript 80.91%
backend mongodb storage aws nodejs

file-upload's Introduction

File Upload

An application developed using Node.js for backend, React.js for frontend and Amazon S3.

The application has the feature of create "Posts", using MongoDB as persistence. At the time, it only supports the feature of uploading files, but I have plans to add description, hashtags, likes and everything more.

The packages I've installed are all listed on package.json of each part (frontend and backend).

Running

Backend

First, define the following environment variables:

  1. APP_URL This is the url you have defined for the app to run (like http://localhost:3000)

  2. STORAGE_TYPE: This one is for multer to know which one storage you are using, the defined storages are: local and s3, use the same values for the environment variable.

  3. MONGODB_URI: This is the access url to your MongoDB instance.

  4. AWS_ACCESS_KEY_ID: This is your secret key id for AWS (only if you're going to use AWS S3 service)

  5. AWS_SECRET_ACCESS_KEY: This is your secret access key for AWS (only if you're going to use AWS S3 service)

  6. AWS_DEFAULT_REGION: This is the region you have configured your bucket to run (only if you're going to use AWS S3 service).

Then must have Node.js installed, enter the backend folder run npm install and then npm start or npm run dev. The npm run dev option runs the app with nodemon and watch files for alteration. Now your backend should be running (note that the .env file is required).

Frontend

ON DEVELOPMENT

file-upload's People

Contributors

luk3skyw4lker avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.