An RDBMS web app for the stall owners of Polytechnic University of the Philippines built on ReactJS, NodeJS, and Bootstrap.
MIT License
This project aims to connect MariaDB with Node.js to build a web application for PUP stall owners. MariaDB will manage data storage, while Node.js will handle the server-side operations.
PUPStols uses a number of open source projects to work properly:
Database design plays a very important part in the Software Development Life Cycle (SDLC). This part includes creating metadata, normalization, and constructing an Entity-Relationship Diagram (ERD).
To add, provided here is the .sql
file of dbStalls
(the database used) if you want to have the database ready with dummy data.
.
├── client # Client-side folder
│ ├──── node_modules # React Packages
│ ├──── public # Auto-generated react files
│ └──── src # Source files
├── server # Server-side folder
│ ├──── config # Database connection
│ ├──── controllers # Controllers
│ ├──── middlewares # Middlewares
│ ├──── models # Models
│ ├──── node_modules # Node Packages
│ ├──── routers # Endpoints
| └──── server.js # Main server file
└── README.md
PUPStols is not yet accessible to the world wide web, as it is yet to be deployed. But, if you're interested in seeing the UI and experience the website yourself, you are in the right section of the README. To get started with accessing the source code, follow the steps below.
You can fork this repository, or you can also clone this repository directly on your local machine.
After cloning the repository on your local machine, access it on any IDE.
After opening the project, you should see all the files listed on the Folder Structure, but without the
.env
for the server-side code.
Install dependencies using,
npm install
Create a .env on the server folder and type the code below. Make sure to replace YOUR_DB_PASSWORD_HERE
with your actual MariaDB/MySQL/Any RDBMS password.
DATABASE_PASSWORD="YOUR_DB_PASSWORD_HERE"
Configure the database connection in server/config/db.js
as per your MariaDB/MySQL/Any RDBMS database environment.
To install the required dependencies for the client folder, see the package.json
for the client-side.
To install the required dependencies for the server folder, see the package.json
for the server-side.
Run the server on /server
.
node server.js
With nodemon
, you can run the server using,
npm run server
Run the client on /client
.
npm start
We would like to thank the following contributors for their support and contributions to this project:
Distributed under the MIT License. See LICENSE for more information.