Welcome to the Movie Notes Backend API! This project provides a RESTful API for managing movie notes, user information, and tags. Users can create movie notes with details such as title, description, rating, and associated tags.
- User Management: Create and update user information.
- Movie Notes: Create, show, delete, and index movie notes.
- Tagging: Associate movies with tags for better organization.
- Search: Search movies by title, tags, or user.
- Node.js
- Express.js
- Knex.js
- SQLite3
- Bcrypt.js
- Clone the repository:
git clone https://github.com/lucasandradegs/DesafioAPI-RocketSeat.git
- Navigate to the project directory
- Install dependencies:
npm install
- Set up the database:
npx knex migrate:latest
- Start the server:
npm start
- I used Insomnia to check and test the user creation routes, movie and tag registration. Feel free to use the program you like the most.
POST /api/users
: Create a new user.PUT /api/users/:id
: Update user information.
POST /api/movies/:user_id
: Create a new movie note.GET /api/movies
: Get a list of all movie notes.GET /api/movies/:id
: Get details of a specific movie note.DELETE /api/movies/:id
: Delete a movie note.
GET /api/movies
: Search movies by user, title, or tags using query
The database includes two main tables: users
and movies
, along with a tags
table for categorizing movies.
If you encounter any issues or have questions, feel free to open an issue on the GitHub repository.
This project was developed with the support of Node.js, Express.js, Knex.js, and other open-source technologies.
Enjoy using the Movie Notes Backend API! 🎥✨