Responsive user interface for an NL-to-SQL system. Empowers non-technical users with direct database access.
- clone the repo
git clone https://github.com/SethCram/linguists-client.git
- install the JavaScript runtime environment Node.js v16 and npm, the Javascript package manager
- on Windows (recommended), download Node.js off their website which comes with npm pre-installed
- on Ubuntu-based distributions
sudo apt install -y nodejs sudo apt install -y npm
- on RHEL-based distributions
sudo yum install -y nodejs
- run "npm install" in the root folder to install the project dependencies
cd linguists-client npm install
- run
npm start
in the root folder to get the frontend up and running- if an issue is encountered, try installing nvm and updating to the right node.js version:
If "command -v nvm" doesn't output "nvm", logout and relogin, and then:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash command -v nvm
nvm install 16.17.1
- if an issue is encountered, try installing nvm and updating to the right node.js version:
- make a change to the project and notice how it's immediately reflected in the development server after saving
- head over to the backend at https://github.com/SethCram/Linguists-NLP-to-SQL/blob/main/README.md#setup and follow the setup steps
- first, setup the backend: backend deployment instructions
- install setup software Node.js and npm
- on Ubuntu-based distributions
sudo apt install -y nodejs sudo apt install -y npm
- on RHEL-based distributions
sudo yum install -y nodejs
- on Ubuntu-based distributions
- clone the repository
git clone https://github.com/SethCram/linguists-client.git
- install the project dependencies
cd linguists-client npm install
- try running the frontend
sudo npm start
- if an issue is encountered, try installing nvm and updating to the right node.js version:
If "command -v nvm" doesn't output "nvm", logout and relogin, and then:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash command -v nvm
nvm install 16.17.1
- if an issue is encountered, try installing nvm and updating to the right node.js version:
- cancel the process with Ctrl-C now that we verified that it launched okay
- redirect the server traffic to the web application
add this inside the "server" block, replacing "root" with:
sudo vi /etc/nginx/nginx.conf
verify the syntax of the config file is okay and start nginx using itroot /var/www/html;
sudo nginx -t sudo service nginx restart
- create the proper folders, copy the production build files to it, and make sure SELinux doesn't interfere
sudo mkdir -p /var/www/html sudo cp -r ./build/* /var/www/html restorecon -r /var/www/html
- navigate to the public IP address using http (e.g. http://[publicIPAddress]) and the frontend should be visible or use curl to verify
curl http://[publicIPAddress]
- verify that it's connected to the backend at port 8000 by clicking on the dropdown and seeing if it breaks