Uploadupia

Anonymous file uploader where users can upload files and share them, I used a fake s3 server locally to manage files

First, run the development server:

npm  npm install
# and
npm run dev

Open http://localhost:3000 with your browser to see the result.

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

NEXT_PUBLIC_CONTENTFUL_SPACE_ID

NEXT_PUBLIC_CONTENTFUL_ACCESS_TOKEN

NEXT_PUBLIC_BACKEND_SERVER = (https://file-uploader-api.onrender.com) or deploy https://github.com/mahdi22dev/s3-server or use docker-compose.yml file from https://github.com/mahdi22dev/s3-server/tree/main/api-local to run a backend server with s3 server runs localy

frontend-Docker

the root folder contains docker-compose.yml to build and run next js app to start the build use:

docker-compose -f "docker-compose.yml" up -d --build

backend_server

i am using s3rver package to mock s3 server to run tests locally the backend repo https://github.com/mahdi22dev/s3-server have 2 folders API and api-local because I don't have any linux server I couldn't deploy docker compose to run live so I made seperate folder called api-local, which contains docker-compose that use aws-cli image and localstack image

🔗 Links

portfolio linkedin twitter