Memory Lane API serves as the backend for a Memories application, providing endpoints to manage user profiles, milestones, and media associated with each memory. Built using Express.js, Knex.js, and MySQL database, this API facilitates storing, retrieving, and managing memories stored by users.
- Express.js
- Knex.js
- MySQL
- bcrypt
- Multer
- JWT
- User Authentication: Users can sign up, log in, and authenticate using JSON Web Tokens (JWT), ensuring secure access to their memories.
- User Profiles Management: Users have the ability to manage profiles for their children. This includes creating new profiles, editing existing ones, and deleting profiles as needed. This feature enhances user control and customization, allowing them to organize and personalize their memories more effectively.
- Memories Management: Users can create, delete, and view their memories, including milestone events.
- Media Attachment: Memories can include various types of media, such as images, videos, or audio recordings, providing a rich multimedia experience.
- Location Tagging: Memories can be tagged with location information, allowing users to remember where each memory took place.
- Creative Memory Creation: The API offers a creative memory creation feature where users can add descriptive titles and meaningful descriptions to their memories as well as people in the memory.
- Date Selection: Users can select the date of each memory, capturing the moment accurately.
- Secure Authorization: Authorization middleware ensures that users can only access their own memories and profiles, enhancing data security and privacy.
- Clone the repository :
git clone <repository-url>
- create and Connect database using environment variables :
cp .env.sample .env
- install dependencies :
npm install
- run migrations and seeds :
npm run migrate
npm run seed
- start the server :
npm start
- google places api
- GET /milstones/:profileId: Get all Milestones related to the profile ID
- POST /milstones/:profileId: Post new milstones by profile ID
- GET /milstones/:profileId/:milestoneId: Get one milestone detalis by profile ID and milestone ID
- DELETE /milstones/:profileId/:milestoneId: Delete a milestone in profile by profile ID and milestone ID
- GET /api/profile: Get all profiles related to the user logged in
- POST /api/profile: Create new profile to the user logged in
- GET /api/profile/:profileID: Get Info of profile by profile ID
- PUT /api/profile/:profileID: Update a profile by profile ID
- DELETE /api/profile/:profileID: Delete a a profile by profile ID
- POST /api/signup: Register a new user
- POST /api/login: Authenticate user login
- GET /api/ : Get user Info after login
No screenshots available.
-
Thorough Planning and Testing: The importance of thorough planning and testing became evident during the development process, particularly when implementing advanced functionalities such as notifications. Future projects will benefit from dedicating sufficient time to planning and testing to avoid issues encountered during implementation.
-
Consideration of Alternative Approaches: Attempting to implement functionality using one approach and then pivoting to another when faced with challenges highlighted the importance of considering alternative approaches. This flexibility allows for adaptation and optimization, ultimately leading to more successful outcomes.
-
Refine Notification Functionality: Explore alternative methods and technologies for implementing notification functionality, considering lessons learned from the initial attempts. This may involve further research, experimentation, and possibly leveraging external services or APIs specialized in notifications.
-
Continuous Improvement: Continuously seek opportunities for improvement and optimization in the development process. This includes refining development workflows, exploring new technologies, and staying updated on best practices in software development.
-
Enhance User Experience: Prioritize enhancing the user experience by addressing any usability issues, optimizing performance, and adding new features based on user feedback. This could involve conducting user testing sessions, collecting feedback, and iteratively improving the application based on user insights.