capstone-project-comp3900-w15a-lol_i_dunno created by GitHub Classroom
Change logs:
- Nothing yet.
- Java (OpenJDK Runtime Environment) 11 or newer.
- Maven
Run following command in the backend
directory:
$ mvn package
To clean build:
$ mvn clean package
Run following command in the backend
directory:
$ mvn exec:java
Open a new/separate terminal window.
Example 1:
curl localhost:8080/rest/msg
Example 2:
{
"email":"[email protected]",
"password":"12345"
}
to path http://localhost:8080/rest/auth/login
:
curl -H "Content-Type: application/json" -d '{"email":"[email protected]","password":"12345"}' http://localhost:8080/rest/auth/login
Example 3:
{
"email":"[email protected]",
"password":"12345",
"firstName":"John",
"lastName":"Doe"
}
to path http://localhost:8080/rest/auth/register
curl -H "Content-Type: application/json" -d '{"email":"[email protected]","password":"12345","firstName":"John","lastName":"Doe"}' http://localhost:8080/rest/auth/register
Download Postman API Platform from https://www.postman.com/downloads/
- Run the backend server.
- Open the Postman application.
To POST:
- Select POST from the bar menu to the left of the URL.
- Enter the path URL e.g. http://localhost:8080/rest/auth/register
- Go to 'Body' tab.
- Change 'none' to raw.
- Change 'Text' to 'JSON'.
- Enter data in JSON format. e.g. {"email":"[email protected]", "password":"12345"}
- Click 'Send'.
- In 'Response', same expected outputs as using curl command should appear. e.g. "Login unsuccessful"
- In the terminal running the server should have their respective outputs. See Example expected outputs sections for more info.
Example 1:
On your terminal running the server should print movie categories.
On your terminal that executed curl
command should print
This is good
Example 2:
On your terminal running the server should print:
[email protected], password=12345
On your terminal that executed curl
command should print.
Login unsuccessful
Example 3:
On your terminal running the server should print:
first=John, last=Doe, [email protected], password=12345
On your terminal that executed curl
command should print.
Register unsuccessful
This project was bootstrapped with Create React App.
Installation:
You will need node
and npm
installed globally on your machine.
Visit https://www.npmjs.com/get-npm and click “Download Node.js and npm”.
Run:
npm ci
To Start Server:
npm start
To Visit App:
localhost:3000/
Build app for production:
npm run build
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
See the section about deployment for more information.
/node_modules
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify