Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Latest commit

 

History

History
71 lines (50 loc) · 1.91 KB

README.md

File metadata and controls

71 lines (50 loc) · 1.91 KB

Couscous Web

Sister repository at bapatchirag/dbd-fuse

What

  • 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

TL;DR

Run it and mount it to use it as a standard filesystem.

TOC

Getting Started

Docker Compose

Docker is the recommended/easier way of starting up the system for development/simple usage. Note: Docker tucks the web server away into 8081

.env config

Environment Variable Description
MYSQL_PASSWORD mysql couscous password
MYSQL_ROOT_PASSWORD mysql root password
ACCESS_TOKEN_SECRET JWT access token secret

Portmap

Port Application
8081 next
3306 mysql
27017 mongos
27018 mongodb cfg1
27027 mongo shard 1
27028 mongo shard 2

Webserver

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.