Omnistack 09
- Clone this repository
git clone https://github.com/MarioCesarJr/aircnc.git
- Connect application with MongoDB Atlas
cd backend
Open src/server.js
file and edit:
mongoose.connect(
'mongodb+srv://<username>:<password>@cluster0-xyulq.mongodb.net/semana09?retryWrites=true&w=majority',
{
useNewUrlParser: true,
useUnifiedTopology: true
}
);
- Install dependencies
> yarn
- Run api
> yarn dev
- Install dependencies
> cd frontend
> yarn
- Run App
> yarn start
Open http://localhost:3000 to view it in the browser.
- Install dependencies
> cd mobile
> yarn
- Run app
> yarn start
- Choose device
# android
> Run on Android device/emulator
# ios:
> Run on iOS emulator