Need assistance with hosting JS-web project

Hello, im trying to host an Assistants discord bot Dashboard. I need help with deploying and domain installing
Solution:
don't put tokens of any kind on code, use service variables https://docs.railway.app/develop/variables add the missing fields to the package.json, you could find the missing fields online or from doing npm init in another folder, and looking at the newly created package.json...
Jump to solution
81 Replies
Percy
Percy11mo ago
Project ID: e5992fe2-93c8-4531-949c-97634b766726
Brody
Brody11mo ago
please share your repo
Консерватор
One second
Консерватор
GitHub
GitHub - Ruddien/DashBoard
Contribute to Ruddien/DashBoard development by creating an account on GitHub.
Brody
Brody11mo ago
that's not a valid package.json
Консерватор
Im using example package.json. xxx - just for not sharing my tokens to public If it`s wrong, what should i do?
Solution
Brody
Brody11mo ago
don't put tokens of any kind on code, use service variables https://docs.railway.app/develop/variables add the missing fields to the package.json, you could find the missing fields online or from doing npm init in another folder, and looking at the newly created package.json
Консерватор
I searched for a variables, and how i should paste they in the code?
No description
Консерватор
In what form?
Консерватор
For example, that one
No description
Консерватор
Sry for dumb q
Brody
Brody11mo ago
please read the docs page I linked, if you for instance had a discord token, you would set a service variable DISCORD_TOKEN to your discord token, then in JavaScript you access that service variables by using process.env.DISCORD_TOKEN the variable you show me here is already automatically set for you, to access it just use process.env.RAILWAY_PUBLIC_DOMAIN in your code
Консерватор
That way?
No description
Brody
Brody11mo ago
don't string quote it
Want results from more Discord servers?
Add your server