Skip to content

thuyencode/file-uploader-the-odin-project

Repository files navigation

Project: File Uploader

More details information here.

👉 Check the screenshots of this project 📸

Tech stacks:

Frontend Backend
front-end's tech stack
and Tanstack Router, Axios, Valibot
back-end's tech stack
and Valibot

Getting started

1. Installing dependencies

This project use some of Bun APIs so make sure Bun is installed.

Then process to install dependencies:

bun i

2. Setting-up the database

Your need to install PostgreSQL first using your OS's package manager, an installer file or using Docker (recommended).

Configure the host address, port number, username, password, a database according to .env.example.

Copy the file .env.example into .env.production.local and .env.development.local and edit the env variables' values.

Then use one of these commands to migrate the database:

# If you're in development mode
bun prisma:dev:migrate

# If you're in production mode
bun prisma:dev:migrate

3. Running the project

First, install all the dependencies:

To run the dev server:

bun dev

To bundle and run the project in production:

bun run build
bun start

Screenshots

Home page
Home page
Sign-in page
Sign-in page
Files page
Files page
File sharing page
File sharing page
File uploader page
File uploader page

About

Project: File Uploader | The Odin Project

Topics

Resources

Stars

Watchers

Forks

Contributors