- Add your application configuration to your
.envfile in theBackEndfolder:
DATABASE_URL = mysql://<user>:<password>@<host>:<port>/<database>
JWT_SECRET_KEY = generate_any_secret_key_you_want
JWT_EXPIRE_TIME = time_in_secondsNote: You can generate a JWT_SECRET_KEY in the console by running this command:
node -e "console.log(require('crypto').randomBytes(32).toString('hex'));"
-
Run
npm run db:generateto make aSQLqueries in/util/database/migrations -
Run
npm run db:migrateto execute thisSQLqueries -
Type
npm starton theFrontEndfolder once, and inBackEndfolder once more