in order to start up the project follow the setps:
- In the backend (flask-server):
- In the treminal cd to the flask-server
- use promt to change into venv:
- Using powershell
venv\Scripts\Activate.ps1
- Using cmd
venv\Scripts\Activate.bat
- Run
python app.py
- Open [http://localhost:5000] (http://localhost:5000) to view it in your browser.
- In the frontend (client):
- In the treminal cd to the client
- Run
npm start
- Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
- Use the search bars to find the movie you're looking for in two fashiones:
- Searching by the world release date
- Searching by the name (or part of it)
- If you don't write anything in the search bar it'll return the movies as the were released
- By clicking on he image you'll be redirected to the movie profile page
There are 3 endpoint to test:
/search
- Searches the database based on query string and sorting type (int)
/movie/<:movie_id>
- Returns the movie with the matching id
/movie/<:movie_id>/image
- Redirectes to the image of the chosen id