New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Any Node.Js/Angular JS guy here ?
So, a friend of mine had this site built by someone. The developer was hosting the site on his DO server. For some reason they parted ways and the developer sent them a backup of the site files (and a db).
Now this friend knows nothing about websites and all and asked for my help to host it again. I am not able to make any sense of it is the site-structure is totally new to me. It looks like a angularjs or nodejs based site (no idea). So need help in recognizing what platform it is built in and how/where to host it. I can spin up a VM but no idea what to install/setup.
Any help/pointers will be appreciated.
Comments
Tagging @Joepie91
@Joepie91
I can help if it's angular/node. Try opening package.json and see if it mentions angular
Angular and AngularJS not the same. If the app is based on the MEAN stack, it probably runs on Node (check more info about the MEAN stack).
If their is no back-end then is more likely to be all HTML, JS (Angular or AngularJS), pretty much a static website.
it says :
It's express based and not angular. Check my pm for commands.
Doesn't seem to be using Angular. But is using ExpressJS... so yeah it runs on nodejs.
so Node JS it is. Thing is, I did follow a few guides but couldnt manage to bring it up. And from what I have been told, this is supposed to be a static site, but the backup files came with a DB. so not sure what is going on here.
@Junkless why don't you just offer $35 for someone with skills to setup it for you?
Give me a PM, I'll help you out for free.
Everything is running, just had to restore db but he seem to have gone offline
I am here, was cooking dinner :P..
It's pure express js
so many nodejs experts here.
Offtopic query : Is it worth and possible to migrate a xenforo forum to nodebb ?
Possible? Yes.
Worth it? Probably not
can you explain a little ?
He mean that you can move to xenforo technically but it's no better than nodebb
well, I am trying to do the opposite. Moving from xenforo forum to nodebb.
Looks like nodejs. You can check info on each package on https://www.npmjs.com . Since there is pg dependency, you must be using Postgres.
Since you have database, you may need to setup the database and run your app.
so as per jetchirag, there are some issues in importing the DB. I would really appreciate if anyone can help me out with this.
Yep, Importing database throws errors. I don't use postgresql but here my points
Either the dump wasn't correct to be restored
Their might be some error with schema
I didn't did restore properly
Again, I am no expert with nodejs but mere learner.
Sorry to derail but FWIW, I use nodebb and it is pretty awesome. Migrated from SMF to nodebb earlier this year and haven't looked back. If it's possible to switch over, I'd suggest doing it. And it doesn't require any nodejs knowledge to use it either, which is nice.
You can try these steps
1) Restore database using pgsql - https://www.postgresql.org/docs/9.5/static/backup-dump.html. You may have to create database, users etc before restoration. I haven't used PG before, so won't be able to help much.
2) https://www.npmjs.com/package/dotenv is used. So you may have to read the code and set / update credentials to database accordingly. You might have a .env file in root of your code, which will have credentials
I created database and user with same credentials as in .env file and restored. Restoring was giving errors like
relation does not exist
with cmd\i file.sql
pg_restore was giving error that database is not a valid dump
I love nodebb as well. It's a mystery why discourse gets so much love when it is very resource intensive and so complicated
I haven't used PG before and not familiar with the issue. Someone who knows postgres may be able to help.
Still have that question about limiting access if you can answer.
Totally slipped my mind. Apologies. Catch me on Discord in a couple of hours from now.
So is there anyone who can help with this ^^ ?
Did you get the complete schema dump or did you recreate it from eyeballing it?