Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mmncit/rails-on-pg
https://github.com/mmncit/rails-on-pg
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mmncit/rails-on-pg
- Owner: mmncit
- Created: 2024-03-09T21:18:11.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-03-09T22:14:09.000Z (10 months ago)
- Last Synced: 2024-03-10T22:31:46.918Z (10 months ago)
- Language: Ruby
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Template for Ruby on Rails using PostgreSQL
## Description
This project is a Ruby on Rails application that utilizes a PostgreSQL database.
## Getting Started
To get started with this project, follow the steps below:
1. Clone the repository to your local machine.
2. Navigate to the project directory.
3. Copy the `.env.example` file and rename it to `.env`.
4. Open the `.env` file in a text editor.
5. Replace the placeholder values with the appropriate values for your environment.
- For example, if your PostgreSQL database username is `myuser` and password is `mypassword`, update the `DATABASE_USERNAME` and `DATABASE_PASSWORD` variables accordingly.
6. Save the `.env` file.## Usage
### Apply database changes
```bash
bundle exec rails db:migrate
```### Run the server
```bash
bundle exec rails server
```