Skip to content

S4nt1ag0/AirCnc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


AirCnc

A project prepared by Rocketseat developed during the week OmniStack 9

License MIT

demo-web          demo-mobile

Tech Stacks

  • ⚛️ React Js — A JavaScript library for building user interfaces
  • ⚛️ React Native — A lib that provides a way to create native apps for Android and iOS
  • 🔄 Typescript — A superset of JavaScript that adds typing and some other features to the language
  • 🧰 Expo — An open-source platform for making universal native apps for Android, iOS, and the web with JavaScript and React.
  • ⚙️ Node Js — A multiplatform software, which executes JavaScript code on the backend and frontend / interface
  • 🔐 MongoDB — An multiplatform open source database oriented software
  • 🚀 Socket IO — A library for realtime web applications

Additional Features

  • Expo was used to create the native application.
  • The Websocket connection was persisted in the database in order to make the server more stateless.
  • The feature of remove spot was add.
  • Was used Context API for control de routes for user signed and not signed, allowing the logout of application.

Getting started

  1. Clone this repo using git clone https://github.com/S4nt1ag0/AirCnc.git
  2. Move yourself to the appropriate directory: cd AirCnc
  3. Run yarn to install dependencies

Getting started with the backend server

  1. Move yourself to the backend folder: cd server
  2. Create a .env file and add the MongoDB url connection in MONGO_URI field
  3. Run yarn dev to start the server

Getting started with the frontend app

  1. Move yourself to the frontend folder: cd web
  2. Create a .env file and add the url and the port where the API are running in REACT_APP_API_URL field
  3. Run yarn start to start the web application

Getting started with the mobile app

  1. Move yourself to the mobile folder: cd mobile
  2. Create a .env file and add the url and the port where the API are running in REACT_APP_API_URL field
  3. Run expo start to start the mobile application and scanned the QR code with your smartphone or choose the option for run in your emulator

Note: if you are running yuor api in localhost, remember that the localhost address change for your smartphone or you emulator, in this case get the url that expo show when you run expo start and add the port of localhost where the server are running.

Note2: if you will use emulator remember start the emulator before choose initialize the mobile application in emulador when run 'expo start'

License

This project is licensed under the MIT License - see the LICENSE page for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published