Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 1.13 KB

File metadata and controls

20 lines (13 loc) · 1.13 KB

OpenFi Set Up Guide

OpenFi its just a alpha / testing / development / thing, so do not expect nothing to work

1. Create database

Create a MySQL database with your favorite gestor / tool, for development I used Wampserver If you use phpmyadmin (db manager used in wampserver) just get the default-database.sql (database-withdata.sql if you want some some devices already added) file and follow this guide In the case of wampserver per default is user root and there is no password. Consider changing mysql port to 3308 to avoid windows issues.

2. Environment variables

In this repo there is a .env.example file, rename it to .env and fill the variables for the database connection Inside /backend folder there is settings.json file where you can change some settings

3. Start the server

This proyect uses nodejs 24, install it on your system and run npm i to install all the dependences To start the server node start.js <port> You can specify the port where the webserver is going to run, by default is 3000.

Default password is admin