Skip to content

Tammekand/Andmebaaside_Projekt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Andmebaaside_Projekt_Beta

Requirments

  • NodeJS
  • Python 3.11

In /frontend folder:

To install all required dependencies, run this command:

npm i

And to start frontend server, run this command:

npm start

In /backend folder:

Create data.py file

DBusername = 'root'
DBpassword = 'password'
DBhost = 'localhost'
DBport = '3306'
DBdatabase = 'hotel'

#To create secret key run this in terminal: openssl rand -hex 32
SECRET_KEY = 'verysecretkeygoesherenlawdlanwldalwdbaljfbljnsxlkvnbodsjrvnf'
ALGORITHM = "HS256"
ACCESS_TOKEN_EXPIRE_MINUTES = 60 * 24 * 7

To install all required packages, run this command:

pip install -r requirements.txt

And to run server, run this:

python main.py

In mysql database:

mysql cmd:

create database hotel;
SET @@global.sql_mode= '';

cmd:

mysql -u @USER -p hotel < ./hotel.sql 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published