Welcome to the development documentation of Project Panda (or The Panda Project), aka KMITL Online Space Reservation System.
The Panda Project sources are hosted on GitHub.
- Project Panda API : itforge-eros/panda-api
- Project Panda Front End : itforge-eros/panda-website
- Project Panda Documentation : itforge-eros/panda-docs
- Run
npm i
in the project folder to install required dependencies. - Run
node server.js
to start the Web server.
The website can now be accessed at localhost:3000
.
We are happy to let you become part of the project.
Note: Pull request approval starts on May 7, 2018.
Steps to contribute to the project
- Fork our repository. (not yet open)
- Work on your forked repository.
- Come back here to create a new pull request.
- We will review your code, and eventually merge your code into our repository.
- You have made our system shinier everyday!
Note: This project is powered by NodeJS and ExpressJS.
This project uses Gulp to automate Sass and JavaScript compilation. Always run gulp
to compile Sass and JS files. Please refer to the project structure below to understand the files.
- Create a new
.pug
file in theviews
directory. Eg.single-space.pug
. - Copy the page structure from
views/template.pug
to your new file and changebody
's class name to match the file's name (eg.body.single-space
). - Add a new route to
server.js
. Example:
app.get("/any-url-to-catch", function(req, res) {
res.render("single-space"); // the Pug file name
});
- Create a new
.js
file in thesrc-scripts
directory. Eg.single-space.js
. - Include the file in a Pug page by adding
script(src="public/scripts/single-space.js")
to the page.
File name should match the page's file name where possible.
panda-website/
├── helpers/ <-- Helper functions
├── node_modules/
├── public/ <-- Publicly-accessible directory
├── routes/ <-- Route handlers
├── src-scripts/ <-- Source script files
├── src-styles/ <-- Source style files
├── views/ <-- Page templates
├── .dockerignore
├── .gitignore
├── Dockerfile
├── globalVars.js <-- Global variables for JS files
├── gulpfile.js <-- Gulp configuration
├── LICENSE.txt
├── package-lock.json
├── package.json
├── process.json <-- PM2 configuration
├── README.md
└── server.js <-- Runnable server application
- If changes don't show up, check if you have already run
gulp
(for front-end) andnode
(for back-end). - Use
nodemon
instead ofnode
to automatically restart the server when the server code changes.
We are from Information Technology, King Mongkut Institute of Technology Ladkrabang
First Name | Last Name | GitHub Username | Student ID | |
---|---|---|---|---|
Kavin | Ruengprateepsang | @kavinvin | 59070009 | |
Kunanon | Srisuntiroj | @sagelga | 59070022 | |
Thitipat | Worrarat | @ynhof6 | 59070043 | |
Nathan | Yiangsupapaanontr | @DobaKung | 59070087 | |
Pornprom | Kiawjak | @foofybuster | 59070113 |
This project is part of these subjects:
- Web Programming 06016215
- Information System and Analysis 06016216
- Database System Concepts 06016217