Giter VIP home page Giter VIP logo

rand-sim-4's Introduction

Goal

In this simulation the aim is to expose you to a real world backend architecture and also bundling using webpack.

  • Learning to read architecture diagram in order to understand complicated structured code
  • Handling REST API/HTTP status codes (401, 422)
  • Using Mongoose
  • Learning about self invoked async functions
  • Using ES6 in node environment (export, import, etc)
  • Working with external API
  • Using authentication headers
  • Getting to know Axios module

Running/Environment

  • Make sure you fork this repository to your own Github, then clone it to your computer
  • Install all the dependencies from package.json file using $ npm install
  • Then, start the server by using $ npm start and not using $ node server.js
  • There are automatic scripts that will run in the background and will compile all your files into one big file called ./build/server.js. It is NOT a file that you should be able to read.
  • You have a file attached call Architecture.pdf that explains the architecture of the application, use it!

To Do

  • Fixing access to /public folder
  • Fixing all the errors that pops up in the console
  • Server is not even running (go to /health to monitor the server), check why
  • Fix authentication headers
  • Add the ability to order by likes when searching photos (see the routes)

Features

  • Save each requested photo in the database - when a user requests a photo, save it using mongoose models. It means you should also build the schema and a model in the right files
  • Add the ability to get/fetch a random photo (read about it in Unsplash API: https://unsplash.com/documentation)

Available Routes

/api/photos/search/<QUERY> | Can add query string: ?orderBy=likes or ?orderBy=resolution

/api/photos/<PHOTO_ID>

rand-sim-4's People

Contributors

corinnegottlieb avatar jonacodes avatar omermorad avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.