A small social media application for posting messages and voting on them.
- React
- Next.js
- Mongodb with mongoose
- Magic.link (for login)
- Typescript
- Iron (by Hapi) for cookie encryption
- Docker
First, you need to set up your local variables
- Clone the code
- Copy
data.exampletodata - Copy
initMongo.example.jstoinitMongo.js - Put the mongodb username and password into
initMongo.js - Put the mongodb username and password into
data/mongodbAuth/useranddata/mongodbAuth/pwd - Run
docker-compose -f ./docker-compose.dev.yml up --build --remove-orphansto run the dev - Copy
pages/leonardo-social-platform/.env.exampletopages/leonardo-social-platform/.envand fill in the environmental variables. Get theMAGIC_keys from the magic website.ENCRYPTION_SECRETneeds to be a random string of characters. - Use
npm ito install the other dependencies
After that, run # docker-compose -f ./docker-compose.dev.yml up --build --remove-orphans.