Skip to content

Commit

Permalink
Revert "update readme."
Browse files Browse the repository at this point in the history
This reverts commit 991cf23.
  • Loading branch information
nimanns committed Nov 19, 2024
1 parent dd4f286 commit 96342af
Showing 1 changed file with 32 additions and 21 deletions.
53 changes: 32 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,44 @@
# Booking App

## About
This project is a booking management application built with Next.js.

This application is designed for reserving rooms at the 370J Media Commons Room.
## Getting Started

## Deployment
Follow these steps to run the application in your local environment.

We employ GitHub workflows for our deployment process.
Any merges into the main branch automatically trigger a deployment to the production Google App Script.
We employ GitHub workflows for our deployment process. Pushing or merging to different branches will automatically trigger different Google App Script deploys:
- `main` branch: triggers the DEVELOPMENT deploy, which serves from localhost and reads/writes the development calendars
- `staging` branch: triggers the STAGING deploy, which serves from the GAS project and reads/writes the development calendars
- `prod` branch: triggers the PRODUCTION deploy, which serves from the GAS project and reads/writes the **production** calendars
The `NODE_ENV` environment variable controls where we serve from, and the `CALENDAR_ENV` environment variable controls which calendars we use. These values are specified in the `package.json` commands triggered by the workflows
### Prerequisites

## Setup Instructions
- Node.js (version 18 or later)
- npm (usually comes with Node.js)

When developing locally, please follow the flow below.
### Installation

1. **Clone the Repository**:
1. Clone the repository or download the project files.

2. **Install Packages**:
```bash
npm install
2. Navigate to the project directory:
```
cd booking-app
```
3. Install the dependencies:
`npm install`
4. Obtain the `.env` file from a project administrator and place it in the root directory of the project.

### Running the Application

To start the development server:
`npm run dev`
The application should now be running on [http://localhost:3000](http://localhost:3000).

## Environment Variables

This project uses environment variables for configuration. Make sure you have received the `.env` file from a project administrator and placed it in the root directory before running the application.

## Deployment

This project uses automated deployment pipelines:

3. **Make sure that you have placed the `.env.local` file in the root directory**
- Pushing to the `main` branch automatically deploys to the development environment.
- Pushing to the `staging` branch automatically deploys to the staging environment.
- Pushing to the `production` branch automatically deploys to the production environment.

4. **Run the dev local server**
```bash
npm run dev
```
Please ensure you push your changes to the appropriate branch based on the intended deployment environment.

0 comments on commit 96342af

Please sign in to comment.