/image_upload_site_expressback

image upload site express backend

Primary LanguageJavaScript

Available Scripts

npm run dev

Runs the app with nodemon

npm run start

Runs the app with node js

Info

you can use dotenv module to setup the following environment variable:

MONGO_URL:

mongodb url.

SERVER_PORT:

the port of the server. if you change this, you need to update the urls in the front-end repository, by default the port should be 5000.

JWT_SECRET:

Jsonwebtoken secret. the secret by default is 'shhh'.

Note

Post uploading is done using formidable and form data.