Skip to content

projectbockscar/LookingGlass

Repository files navigation

lookingglass_react_backend

LookingGlass Backend Overview The LookingGlass Backend is the server-side component of the LookingGlass application. It manages API requests, processes data, and interacts with the MongoDB database.

Features RESTful API endpoints for data interaction User authentication and authorization using JWT Data management and storage with MongoDB Error handling and logging Installation Clone the repository: bash

git clone https://github.com/Shields003/LookingGlass.git cd LookingGlass Install dependencies:

npm install Create a .env file and configure environment variables: makefile

PORT=5000 MONGODB_URI=your_mongodb_connection_string JWT_SECRET=your_jwt_secret Start the server: sql

npm start Usage Access API endpoints at http://localhost:5000 Use tools like Postman to test API endpoints API Endpoints POST /api/auth/register - Register a new user POST /api/auth/login - Authenticate a user GET /api/users - Get a list of users (requires authentication) POST /api/data - Add new data (requires authentication) Contributing Feel free to open issues or submit pull requests.

License This project is licensed under the MIT License.

Releases

No releases published

Packages

No packages published