mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2025-06-27 20:45:35 -04:00
adding devops
used gemini to create the k8s/dockerfiles faster
This commit is contained in:
parent
5c09c5a22f
commit
6c14a968c3
74 changed files with 2061 additions and 16 deletions
49
messages/README.md
Normal file
49
messages/README.md
Normal file
|
@ -0,0 +1,49 @@
|
|||
# Messages Project
|
||||
|
||||
## Description
|
||||
|
||||
The Messages project is a simple web-based message board application built using Node.js and Express.js. It allows users to create and view messages.
|
||||
|
||||
## Local Development Setup
|
||||
|
||||
Follow these steps to run the project locally:
|
||||
|
||||
1. **Clone the Repository:**
|
||||
```
|
||||
bash
|
||||
git clone <repository-url>
|
||||
cd messages
|
||||
|
||||
```
|
||||
2. **Install Dependencies:**
|
||||
```
|
||||
bash
|
||||
npm install
|
||||
|
||||
```
|
||||
3. **Database Setup**
|
||||
|
||||
The project utilizes a database to persist messages.
|
||||
|
||||
* Install postgres if not already present.
|
||||
* Create a database and modify the config.js file accordingly
|
||||
```
|
||||
# In the project directory
|
||||
psql < src/models/init.sql
|
||||
|
||||
```
|
||||
4. **Run the Application:**
|
||||
```
|
||||
bash
|
||||
node src/app.js
|
||||
|
||||
```
|
||||
5. **View the Application:**
|
||||
|
||||
Open your web browser and go to `http://localhost:3000` to see the application.
|
||||
|
||||
## Additional Notes
|
||||
|
||||
* Ensure that Node.js and npm are installed on your machine.
|
||||
* You can modify the application by editing the files in the `src` directory.
|
||||
* Make sure to refer to `src/config.js` to configure the correct database and ports.
|
Loading…
Add table
Add a link
Reference in a new issue