Where every picture tells a thousand stories.
Mosaicify is a Photo Gallery and sharing app built as our project for the PISC (PICT IEEE Student Chapter) organised Hackathon - Tech Rush.
- Install pre-requisites
- PostgreSQL
- Redis
- Meilisearch
- Go
- Node + npm
- Clone the repo
- Create a
.envfile in project directory and define the following variablesMOSAICIFY_STORAGE_DIR- Storage directory for all posts and profile picturesMOSAICIFY_POSTGRES_DSN- PostgreSQL DSN stringMOSAICIFY_REDIS_ADDR- Address where Redis is hostedMOSAICIFY_REDIS_DB- Redis DBMOSAICIFY_REDIS_PASS- Redis passwordMOSAICIFY_MEILISEARCH_ADDR- Address where meilisearch is hostedMOSAICIFY_MEILISEARCH_MASTER_KEY- Meilisearch master-keyMOSAICIFY_AUTH_HASH_KEY- Cookie encryption hash key (at least 32 bytes long)MOSAICIFY_AUTH_BLOCK_KEY- Cookie encryption block key (16 or 32 bytes long)
- In the directory specified in
MOSAICIFY_STORAGE_DIR, create two sub-directories namedprofile_picsandposts. And also store a default profile picture for users by saving it asdefaultProfilePic(no extension) and saving it inMOSAICIFY_STORAGE_DIR - Now run the backend by running
go run ./main.goin project directory. - Similarly, in a new terminal window, run
npm install && npm run devin theappdirectory.
After following these steps, your backend should be running at http://localhost:5000 and frontend at http://localhost:5173
