Deployed version: LINK
git clone REPO_URLAPP_PORT=8000
JWT_SECRET=aldjadjaldaj
JWT_EXPIRES_IN=7dAPP_PORT HAS TO be 8000
cd backend
npm run devcd frontend
npm run devTo run the project, follow these steps:
Download and install Docker from the official website
Pull the latest Docker image of the app from Docker Hub:
docker pull justmrargus/movies:latestStart the container with the following command:
docker run --name movies -p 8000:8050 -e APP_PORT=8050 justmrargus/moviesYou can access the app at http://localhost:8000/
- backend – contains the API of the app
- frontend – contains the frontend part of the app
- test-data – contains
sample_movies.txt, which can be used for testing the app’s import functionality - Dockerfile – used to build the Docker image
- .dockerignore – specifies files that should be ignored when creating the Docker image
- controllers/ – contains the controllers
- middleware/protect.js – middleware that protects routes from unauthorized users
- middleware/txtMovieDataHandler.js – middleware that transforms a
.txtfile into an array of JavaScript objects - models/index.js – contains Sequelize setup and models
- routes/ – contains the routes
- utils/apiFeatures.js – contains logic to handle query parameters
- utils/signToken.js – creates a JWT token
- app.js – defines the Express app logic
- server.js – contains the server creation logic
- public/img – contains image templates for movie cards
- src/components – contains React components
- src/pages – contains pages built from React components for React Router
- src/App.js – main app file, contains React Router logic