Team 8: Web-Anwendung zur Ressourcenverwaltung von Baufirmens
To setup the project, NodeJS should be installed in your computer. And for the database you can install either MySQL or XAMPP.
You can visit the production version of this project in https://bau.developmore.net (Attention: the production version may not be the latest version of this project)
To open or edit this project, you may want to follow these instructions:
- Clone this repository.
- Import bau.sql in your SQL-database.
- Open the terminal and cd to the cloned repository.
- Cd to client/ and type npm install and enter.
- Cd to server/ and type npm install and enter.
- In the server/ repository, make a .env file.
- Add variables SESSION_SECRET, TOKEN_SECRET, COOKIE, DB_HOST, DB_USER, DB_DATABASE and eventually DB_PASSWORD.
- In above case, the database doesn't have a password. So it only contains an empty string. If your database has a password you can replace the empty string with process.env.DB_PASSWORD. And set the variable DB_PASSWORD in the .env file.
- Still in the server/, type node server.js to start the backend server. Or you can install nodemon and use it.
- Cd to client/ and type npm start to start the frontend server.