Follow these steps to set up and preview the NoteKeeper project locally:
Clone the repository to your local machine using Git:
git clone https://github.com/faresdjefaflia/NoteKeeper.git
cd NoteKeeper
Navigate to the frontend
directory and install dependencies:
cd frontend
npm install
Run the following command to start the frontend application:
npm run dev
The frontend will be available at:
http://localhost:3000
Navigate to the backend
directory and install dependencies:
cd backend
npm install
Run the following command to start the backend server:
npm run start-dev
The backend will be available at:
http://localhost:5000
- Install MariaDB on your local machine (if not installed already).
- Set up the database and tables as per the schema provided in the project.
- Use DBeaver or a similar tool to connect to the MariaDB server and manage the database.
open: /api-docs-and-dump
- Description: A database dump containing the
users
andnotes
tables with their data. - Usage: Restore this dump to set up the NoteKeeper database.
- Description: A Postman collection for testing the NoteKeeper API endpoints.
- Usage: Import the file into Postman to test the API.
- Open Postman and configure requests to test API endpoints.
- The base URL for the backend API is:
http://localhost:5000
. - You can test endpoints like
/register
,/login
,/notes
, etc., by sending requests with proper parameters (email, password, note content).