Skip to content

cuongvuong-phoenix/virtual-file-sytem-v3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Virtual File System (v3)

Vite-CVP image

A simple Virtual File System implementation based on requirements version 3
Built with Vue, Rust, PostgreSQL

Documentation

The documentation is available here.

Development

Prerequisites

Client

Navigate to the ./client folder and in there, install required dependencies and run the Vite Dev Server:

cd ./client
pnpm install
pnpm dev

Server

  1. First, install SQLx CLI binary:

    # supports all databases supported by SQLx
    cargo install sqlx-cli
    
    # only for postgres
    cargo install sqlx-cli --no-default-features --features native-tls,postgres
  2. Navigate to the ./server folder and in there, create database (if not exist) and run migrations:

    cd ./server
    sqlx database create
    sqlx migrate run
  3. Build and run the Server:

    cargo run