Welcome to the SCP Portal App! This project consists of two main components: a frontend web application and a backend API. Below is a brief overview of each component and how to set up the project.
- Overview
- Directory Structure
- Technologies Used
- Getting Started
- API Documentation
- Database Setup
- Contributing
- License
The SCP Portal App is designed to learn the basic concept of the React, salisjs(Nodejs). This application includes following modules and keep involving more...
- Companies
- Contacts
- Inventories
- Quotes
- User Profile
scp-portal-app/
│
├── web-app/ # Frontend application
│
└── web-api/ # Backend API
- React
- Material-UI (MUI)
- AG Grid
- Sails.js (Node.js framework)
- MySQL/MariaDB
To set up the project locally, follow these steps:
- Node.js (for both frontend and backend)
- MySQL/MariaDB
-
Navigate to the
web-app
directory:cd web-app
-
Install the dependencies:
npm install
-
Start the development server:
npm start
-
Navigate to the
web-api
directory:cd web-api
-
Install the dependencies:
npm install
-
Complete Database Setup:
-
Start the development server:
sails lift
The API provides endpoints for various functionalities. Below are some key endpoints:
To review the APIs, go to routing settings in the backend configuration file. under web-api/config/routes.js
-
Ensure that MySQL/MariaDB is installed and running.
-
Create a new database for the project.
-
Run the database migration scripts (if applicable) to set up the schema.
-
Update the database connection settings in the backend configuration file. under
web-api/config/datasources.js
adapter: process.env.DB_ADAPTER || "sails-mysql", url: process.env.DB_URL || "mysql://root@localhost:3306/sails_scpapi",
-
Update the database model settings in the backend configuration file. under
web-api/config/model.js
, after the migration is done, just make itmigrate: "safe"
migrate: "alter"
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Commit your changes with a descriptive message.
- Push to the branch.
- Create a pull request.
This project is licensed under the Free License.