MEAN Stack Project: Create Quick File Share Application: Part 2 Backend

This page summarizes the projects mentioned and recommended in the original post on dev.to

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • ShareNow

    A clean and quick way to share your files in your contacts. Just upload the file and send the download link to your contacts.

  • const express = require('express'); const app = express(); const PORT = process.env.PORT || 3000; const path = require('path'); const dotenv = require('dotenv') dotenv.config({ path: './.env' }) const connectDB = require('./config/db'); connectDB(); var cors = require('cors'); // use it before all route definitions // app.use(cors({ origin: ['https://share-now-backend-gi2ea360d-varun21vaidya.vercel.app/', 'https://share-now-file-sharing-app.vercel.app/', 'http://localhost:4200'] })); // cors policy app.use(cors({ origin: ['https://share-now-backend.vercel.app/https://share-now-file-sharing-app.vercel.app/', 'https://share-now-backend.vercel.app/http://localhost:4200'], // use your actual domain name (or localhost), using * is not recommended methods: ['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'HEAD', 'OPTIONS'], allowedHeaders: ['Content-Type', 'Origin', 'X-Requested-With', 'Accept', 'x-client-key', 'x-client-token', 'x-client-secret', 'Authorization'], credentials: true })) app.use(express.json()); // setup static files // using app.use to serve up static CSS files in public/css/ folder // when /public link is called in ejs files // app.use("/route", express.static("foldername")); app.use('/public', express.static('public')); //template engine app.set('views', path.join(__dirname, '/views')); app.set('view engine', 'ejs'); // Routes // to upload file use this route app.use('/api/files', require('./routes/files')); // when file is uploaded it returns this route app.use('/files', require('./routes/show')); // to download file use this route app.use('/files/download', require('./routes/download')); app.listen(PORT, console.log(`Listening on port ${PORT}.`));

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • The Rise and Fall of 3M's Floppy Disk

    2 projects | news.ycombinator.com | 3 Apr 2024
  • PairDrop – Local file sharing in the browser

    1 project | news.ycombinator.com | 21 Mar 2024
  • A Beginner's Guide to Hosting a Dark Web Chat Interface

    2 projects | dev.to | 12 Mar 2024
  • Did the whole pairdrop repo just vanished? #356

    1 project | news.ycombinator.com | 11 Mar 2024
  • LocalSend: Open-source, cross-platform file sharing to nearby devices

    35 projects | news.ycombinator.com | 10 Mar 2024