-
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:bytom
Or 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
USER
andADMIN
roles.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_STARTUP
by default.
-
Requirements
node.js 10.13
-
Go to the
bytom-app-client
foldercd bytom-app-client
-
Use the following command to install the dependencies and start the application
npm install && npm start
The front-end server will start on port
3000
.