https://github.com/letstayfoolish/movies-explorer-api
https://github.com/letstayfoolish/movies-explorer-api
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/letstayfoolish/movies-explorer-api
- Owner: letStayFoolish
- Created: 2023-08-22T17:23:29.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-27T07:37:42.000Z (over 2 years ago)
- Last Synced: 2023-09-27T17:33:47.875Z (over 2 years ago)
- Language: JavaScript
- Size: 77.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Movies Explorer App (back-end)
### *Educational purpose project from [Яндекс.Практикум](https://practicum.yandex.ru/web/)*
This project includes [backend](https://github.com/letStayFoolish/movies-explorer-api) part as a server-side for front-end app [movies-explorer-frontend](https://github.com/letStayFoolish/movies-explorer-frontend).
## Functionality
### Client
- Create new user
- Login with registered user
- Update user's information (name, email)
- Logout
### Movies
- Add movie/s to favorites
- Read movies from user's favorites
- Remove movie/s from favorite list
[//]: # (## Screenshots)
[//]: # (
)
[//]: # (Show all)
[//]: # (
)
[//]: # (
)
[//]: # (
)
[//]: # (
)
[//]: # (
)
[//]: # (
)
[//]: # (
)
[//]: # ()
[//]: # ()
[//]: # (
)
## Technologies:
### Backend:
- Node.js;
- Express
- MongoDB
- mongoose
- JWT in cookie,
- Nginx
- pm2
- Celebrate
- Winston
- Jest\* (request testing, backend side)
## Connections
### Server
IP 84.201.158.81
Frontend: https://more-movies.nomoredom.nomoredomainsicu.ru
Backend: https://api.more-movies.nomoredomainsicu.ru
### Local
[//]: # (Frontend: http://localhost:3000
)
Backend: http://localhost:3000
## How to install and run locally
It may happen that Mesto can not be available due to hosting expiration. You have ability to download and run this app\repo locally.
So, if you don't want to deploy this app locally, you can also check frontend part using [Mesto frontend](https://github.com/letStayFoolish/react-mesto-auth)
## Usage
### Backend
* Settings for backend. All commands are located in package.json:
Clone repository:
git clone https://github.com/letStayFoolish/movies-explorer-api/
You can do it just by click [here](https://github.com/letStayFoolish/movies-explorer-api/).
Install dependencies:
npm install
Run app:
`npm run start` — start server
`npm run dev` — start server hot-reload
### Directories
`/routes` - folder with routes files
`/controllers` - folder with controllers files (users & cards)
`/models` - folder with schemas (users & cards)
`/middlewares` - middleware functions are used to perform tasks that occur in between receiving a request and sending a response
`utils` - used to store utility functions and modules that are used across different parts of the application.
## Project's checklists:
- [Checklist](https://code.s3.yandex.net/web-developer/static/new-program/web-diploma-criteria-2.0/index.html#backend).
## License
````
This project is licensed under the Yandex Practicum License.
````
Copyright (c) _2023_ _Nemanja Karaklajic_