-
Requirements
Java 8+ Maven (or use Maven Wrapper bundled with application) -
Clone the application
git clone https://github.com/trthhrtz/ShareCity.git cd junction-bytom-app -
Create PostgreSQL database
create database in postgresql bytom_app -
Create PSQL user
login:bytom password:bytomOr change to desired in
bytomapp-server/src/main/java/application.properties -
Run the app
You can run the spring boot app by typing the following command -
mvn spring-boot:run
The server will start on port 5000.
-
Add the default Roles
The spring boot app uses role based authorization powered by spring security. Please execute the following sql queries in the database to insert the
USERandADMINroles.INSERT INTO roles (name) VALUES ('ROLE_STARTUP'); INSERT INTO roles (name) VALUES ('ROLE_ADMIN'); INSERT INTO roles (name) VALUES ('ROLE_CORPORATE'); INSERT INTO roles (name) VALUES ('ROLE_STARTUP'); INSERT INTO roles (name) VALUES ('ROLE_CORPORATE');
Any new user who signs up to the app is assigned the
ROLE_STARTUPby default.
-
Requirements
node.js 10.13 -
Go to the
bytom-app-clientfoldercd bytom-app-client -
Use the following command to install the dependencies and start the application
npm install && npm startThe front-end server will start on port
3000.