This is a backend of the WhichCar mobile app.
The server is host on Heroku and save images on the Amazon S3 to send link to Algorithmia API and get informations of the car.
This app features all the latest tools and practices in development!
- Node.js — Node.js is an open-source, cross-platform, JavaScript runtime environment.
- Express — Fast, unopinionated, minimalist web framework for Node.js
- Multer — Node.js middleware for handling 'multipart/form-data'.
- Algorithmia — Algorithmia makes applications smarter, by building a community around algorithm development.
- Amazon S3 — Store data in the cloud and learn key bucket and object concepts with the Amazon S3 web service.
- Clone this repository:
git clone https://github.com/iannsantos/which-car-backend
- Open the project folder in terminal (or CMD on Windows) and run some command below:
With Yarn:
yarn
With NPM:
npm install
- Open the code in your favorite editor (I recommend VSCode).
- Copy the .env.example to .env and insert your keys.
- If you already have Docker Compose, run:
docker-compose up
- If you don't have Docker Compose, run:
With Yarn:
yarn dev
With NPM:
npm run dev
- Now, you are ready!
This server provide just 2 endpoints
GET <URL>/ => Server status
POST <URL>/car => Send image and show informations of the car.
Test endpoints in Insomnia
This project is licensed under the MIT License - see the LICENSE page for details.