Skip to content

jcagz96/Omnistack9_aircnc_backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aircnc | Description

A simple app to to approach companies and developers. How? Companies register available spots in their instalations for specific topics, adding a price and an image, in the web app Developers register in the mobile app adding email and topics interested in, after that they can see which companies are available to having them there. Developers choose a company and try to book a day to go there. Companies receive these bookings in real time and accept or reject. Developers receive companies response in real time too.

Login screen Inside app

Aircnc backend

Mobile repository aircnc mobile App

Frontend web repository aircnc frontend

Installation

git clone https://github.com/jcagz96/Omnistack9_aircnc_backend.git

yarn
# or
npm install

yarn dev
# or
npm dev

.env file example

PORTA = 3333
BASE_URL = http://localhost:3333
DB_CONNECT = <YOUR MONGODB LINK, DB STORED IN MONGOBD ATLAS>

#you can choose 'local' or 's3'
STORAGE_TYPE = s3

AWS_ACCESS_KEY_ID = <YOUR_AWS_ACCESS_KEY_ID>
AWS_SECRET_ACCESS_KEY = <YOUR_AWS_SECRET_ACCESS_KEY>
AWS_DEFAULT_REGION = <YOUR_AWS_DEFAULT_REGION>

Images storage

You can choose store spots images in local storage or in AWS s3(if you provide AWS keys in .env file)

Endpoints

post : http://localhost:3333/sessions

post : http://localhost:3333/spots
get : http://localhost:3333/spots

get: http://localhost:3333/dashboard

post: http://localhost:3333/spots/:spot_id/bookings

post: http://localhost:3333/bookings/:booking_id/approvals
post: http://localhost:3333/bookings/:booking_id/rejections

Some libraries used

  • Express
  • Axios
  • Mongoose
  • SocketIO
  • Crypto
  • Multer
  • Cors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published