Sister repository at bapatchirag/dbd-fuse
- This is a webserver.
- Its meant to act as one part of a filesystem that you can work with in your system
- This has a centralized MySQL server
- This has a sharded MongoDB server
- Files go into MongoDB
- Metadata goes into MySQL
- There's users
- There's groups
Run it and mount it to use it as a standard filesystem.
Docker is the recommended/easier way of starting up the system for development/simple usage.
Note: Docker tucks the web server away into 8081
Environment Variable | Description |
---|---|
MYSQL_PASSWORD | mysql couscous password |
MYSQL_ROOT_PASSWORD | mysql root password |
ACCESS_TOKEN_SECRET | JWT access token secret |
Port | Application |
---|---|
8081 | next |
3306 | mysql |
27017 | mongos |
27018 | mongodb cfg1 |
27027 | mongo shard 1 |
27028 | mongo shard 2 |
Note: Either run the system using docker-compose
, or set up the required subsystems and add the required environment variables (Refer to the environment variables used by the web
container).
This is a Next.js project bootstrapped with create-next-app
.
Development server:
npm run dev
Open http://localhost:3000 (or 8081 if using docker) with your browser to see the result.