This application supports Node >= v10.x.x. Please download a relevant version from here.
I would highly recommend to setup nvm.
- Add "jwt-token-key" and "mongo-conn-string" keys to AWS Secrets Manager
jwt-token-key
is used as the encryption key for your credentials on local storage.mongo-conn-string
is the connection string of your mongo cluster.
Read through this document to be able to connect to AWS resources from your local machine.
Here are three ways to get this done :
- You can provision Mongo on your local machine.
- Setup a sandbox on MongoDB Atlas
- Use AWS DocumentDB (with MongoDB compatibility)
PS : If you use DocumentDB, local testing might be a bit cumbersome as you can't connect to a cluster from outside of its VPC.
Move into the directory where you'd like to manage this project.
git clone https://github.com/mbad0la/naive-twitter.git
cd naive-twitter
npm i
npm run build
npm start
- After every change to client codebase, please run
npm run build
again.