-
-
Notifications
You must be signed in to change notification settings - Fork 58
OLD V3 Installation
- The main configuration file for your database is:
$ cp ./server/config/config.js.sample ./server/config/config.js
After this you will need to manually import the database dump (like running in command line or with a MySQL client).
The installation file is located in:
./migrations/prod/sqls/install_reldens_[VERSION].sql
- Additionally to that main config file you could start using db-migrate (instead of do the manual import), to do it you will need to setup the following files:
$ cp ./database.json.sample ./database.json
$ cp ./migrations/prod/config.json.sample ./migrations/prod/config.json
Then edit and replace the values as you need.
Later you will need to run the package installation that will run the migrations (this should be done AFTER you run $ npm install
(see following steps):
$ npm run install-db
Note, as how db-migrate works, now you could also create your own migration scripts by scoping:
https://db-migrate.readthedocs.io/en/latest/Getting%20Started/commands/#scoping
NOTE: if you have issues with the database setup in MariaDB is possible that could because the JSON fields type, or the chat FK's. This issues are going to be fixed in V4 (soon to come).
- Run the following commands:
$ git clone [email protected]:damian-pastorini/reldens.git
$ cd reldens
$ mkdir dist
$ npm install
// If you are using db-migrate then run the installation here: $ npm run install-db
$ npm start
After these you should get a message where the project is running (Like localhost:8080).