Find Jobs
Hire Freelancers

MongoDB and NodeJS: help route API keys dynamically

$15-25 USD / hour

Đã đóng
Đã đăng vào gần 4 năm trước

$15-25 USD / hour

Ive been wanting to build a simple(ish) app that helps onboard IoT devices (similar to thingspeak). I have an IoT sensor making POST requests to an express server, which is then passed to the client via a [login to view URL] emit() function. So I managed to make a profile and login system, via a user schema in mongodb, and for every user created, a 32-bit random string is generated in the DB which is meant to act as an API key. The idea is that the user can use the key as an API endpoint to receive data from the sensor. What I want to have happen in the application is once the user logs in, their API key is routed by the server, and they can use that key. I have managed to make the initial 'prototype', if you will. But this only works if I hard code a user's key into the [login to view URL]() function and in the [login to view URL]() request like so: ==================================================== [login to view URL]('/api/ZAH7Wu77AkW8valdhxMbdJhNQyO3bHEP') [login to view URL]("/api/ZAH7Wu77AkW8valdhxMbdJhNQyO3bHEP", function(request, response) { var myData = [login to view URL]; [login to view URL](myData) [login to view URL]('myData', myData); }); =================================================== So here are the requirements that I was hoping to get help with: 1. To pass the user's API key from the database into the API route dynamically (I think is the word?). I was hoping I could do something like this: [login to view URL]('/api/:apikey1) where apikey1 is the user's generated key. 2. You may notice in the code, I use [login to view URL] to emit the post request body (containing the data) to the client, but this gets broadcasted to every client. What Im now hoping to do is have it sent only to the client that has the private key. I have a 'profile' component set up (vue.js), and I was considering putting in logic on the application side to only display data if the private key is present, but I've come to learn that this may be very insecure and bad practice. I was hoping to hire somebody who has experience with MongoDB, Express and Node.js, and who knows how to route these private key values dynamically in the express server. Thank you for taking the time to read this, I'm a student from Boston MA, and I'm hoping to also learn how this type of thing is done. I look forward to hearing from you.
Mã dự án: 25783405

Về dự án

8 đề xuất
Dự án từ xa
Hoạt động 4 năm trước

Bạn muốn kiếm tiền?

Lợi ích khi chào giá trên Freelancer

Thiết lập ngân sách và thời gian
Nhận thanh toán cho công việc
Phác thảo đề xuất của bạn
Miễn phí đăng ký và cháo giá cho công việc
8 freelancer chào giá trung bình $19 USD/giờ cho công việc này
Avatar người dùng
Hello I'm a Senior Backend Developer with full experiences building out both consumer and startup applications, including web, mobile and desktop applications with the latests technologies, mostly the MERN/MEAN stack. Especially, I have rich experiences in node-based multi-tier architecture and role-based fine-grained authorization feature. Also, I can apply a mature dependency injection pattern across the entire project if you'd like. Roles I work with: - Be seasoned with node-based backend architectures - Able to implement complex fine-grained authorization mechanisms for REST APIs - Able to implement complex dependency injection patterns for cross modules and cross services dependencies - Able to architect front-end SPAs with a clear conceptualization of layers and structures involved Best Regards
$20 USD trong 40 ngày
5,0 (3 nhận xét)
4,4
4,4
Avatar người dùng
Hi there, Beside other experience, I have done one IoT application (remote sauna controller) so I am the right man for this job. Similar to your request, we have user keys to detect which sauna user control. The base is TCP server and WebSockets. Without any database. Sensor remote key every time sending data to TCP server, and according to how user logged (which key set) user getting data and can send data to sensors. I am a very experienced developer with high-level skills especially in the area of complex applications such as ERP's, inventory management, e-commerce etc. This experience allows me to can choose the best approach for every project. Hight skilled in the front end, also in backend. Creating and using RESt API's Web scraping PJP, ASP.net(VB.net), Node, Express JS, Ajax, Jquery, React... Phonegap for hybrid apps.
$20 USD trong 40 ngày
5,0 (4 nhận xét)
3,5
3,5
Avatar người dùng
Hi, I am a Mean stack developer. I am working on Node.js Angular, Express, and Mongo from the past 4 years. I can do your work and explain as well all the concepts needed to do work.
$15 USD trong 20 ngày
0,0 (0 nhận xét)
0,0
0,0
Avatar người dùng
I am having 11+ years of experience in development and 4 years of relevant experience in node js, vue.js , express and mongodb. I can do this job easily for you, because I have implemented OAUTH in multiple applications where api keys and secrets are required to connect to rest endpoint. If I understood correctly, you want api key to be stored in mongodb and user can access the api using the api key in url path and if authenticated will get the response back. Please let me know if you are interested in my profile and want to give this job to me. Thanks
$17 USD trong 30 ngày
0,0 (0 nhận xét)
0,0
0,0
Avatar người dùng
Hey! I guess you are taking a slightly wrong approach, you should be taking that as a parameter. I can help you out with this, I am an IOT and a back end developer and I can pretty much understand what you are trying to build. Would love to hear back!
$22 USD trong 40 ngày
0,0 (0 nhận xét)
0,0
0,0
Avatar người dùng
hello. i can build your project with my professional skills in Express JS, MongoDB, node.js, Socket IO, Vue.js. you will get full satisfy. we can discuss more via chatting. best regards.
$17 USD trong 30 ngày
0,0 (0 nhận xét)
0,0
0,0

Về khách hàng

Cờ của UNITED STATES
Deerfield, United States
5,0
1
Phương thức thanh toán đã xác thực
Thành viên từ thg 5 30, 2020

Xác thực khách hàng

Các công việc khác từ khách hàng này

MongoDB and NodeJS: help route API keys dynamically -- 2
$30-250 USD
Cảm ơn bạn! Chúng tôi đã gửi email chứa đường link để bạn lấy tín dụng miễn phí.
Đã xảy ra lỗi trong khi gửi email của bạn. Hãy thử lại.
Người Dùng Đã Đăng Ký Tổng Số Việc Đã Đăng
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Đang tải xem trước
Đã cấp quyền truy cập vị trí.
Phiên đăng nhập của bạn đã hết hạn và bạn đã bị đăng xuất. Hãy đăng nhập lại.