- Set up a MongoDB instance e.g. in MongoAtlas or localhost.
- Create a file
.env
under~/backend
. - Configure the environment variable
MONGO_URL
within.env
file. - Under
~/backend
runyarn && yarn dev
and it's done! - Now you can access it in your browser
http://localhost:3333/posts
- You can choose where your images will be saved: localhost or s3.
To do so, first create a bucket on Amazon S3. After, update in the file
~/backend/.env
accordingly: STORAGE_TYPE
: accepts the valuess3
orlocal
.AWS_BUCKET_NAME
: the bucket name you've just created on Amazon S3.- Also update the variables below according to your personal information on S3:
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=
- Under
~/frontend
runyarn && yarn start
. Now you can access it directly in your browser underhttp://localhost:3000
.
- Open the file
~/mobile/src/services/config.js
and configure your IP Address accordingly. - Go back to
~/mobile
and - for Android device/emulator:
yarn && react-native link react-native-image-picker && react-native link react-native-gesture-handler && react-native run-android
- for iOS device/emualtor: run
yarn && react-native link react-native-image-picker && react-native link react-native-gesture-handler && react-native run-ios