Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sassanghz/lagnos.ai--springboot-angular
A simple web application the features different software frameworks for the web page of Lagnos.ai.
https://github.com/sassanghz/lagnos.ai--springboot-angular
angular springboot3 sqlite3
Last synced: about 1 month ago
JSON representation
A simple web application the features different software frameworks for the web page of Lagnos.ai.
- Host: GitHub
- URL: https://github.com/sassanghz/lagnos.ai--springboot-angular
- Owner: sassanghz
- Created: 2024-11-11T00:38:56.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-13T02:27:31.000Z (about 2 months ago)
- Last Synced: 2024-11-13T03:24:34.086Z (about 2 months ago)
- Topics: angular, springboot3, sqlite3
- Language: TypeScript
- Homepage:
- Size: 304 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**Lagnos Web Application**
This project is a web application that includes:A Spring Boot backend for handling user authentication and database interactions using SQLite.
A frontend application (Angular) for user interaction, allowing users to login and perform actions on the website.To run this project, you need to have:
Java 11 or higher installed for the backend.
Node.js and npm installed for the frontend (if you're using Angular or React).
SQLite installed or included in the project dependencies.git clone https://github.com/sassanghz/lagnos.ai--Springboot-Angular.git
cd lagnos-backendYou can start the backend server with the following command:
bash
Copy code
./mvnw spring-boot:run # For Windows, use .\mvnw.cmd spring-boot:runThe server should start on http://localhost:8080
Verify Backend:
You can use Postman or similar API client to test the login endpoint:
Endpoint: POST http://localhost:8080/api/users/login
Body:
json
Copy code
{
"email": "[email protected]",
"password": "qwe"
}Navigate to the Frontend Directory:
bash
Copy code
cd ../lagnos-frontendRun the Frontend Application:
ng serve # For AngularBy default, Angular will start on http://localhost:4200
Troubleshooting
Backend Issues:Ensure that Java and Maven are installed correctly.
If the database is missing, check that schema.sql is in src/main/resources and that spring.datasource.initialization-mode=always is set in application.properties.
Frontend Issues:Check that the frontend server URL matches the backend’s base URL.
If npm install fails, make sure Node.js and npm are up-to-date.