Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/natasha-ct/hello--rails

This is a simple rails project to practice initalizing a rails app and deploying it on rails server
https://github.com/natasha-ct/hello--rails

postgresql-database rails ruby-on-rails

Last synced: 2 days ago
JSON representation

This is a simple rails project to practice initalizing a rails app and deploying it on rails server

Awesome Lists containing this project

README

        

# HELLO RAILS
This is a simple rails project to practice initalizing a rails app and deploying it on rails server

- Create a new app called 'hellorails'.
- Initialize your project with Git.
- Make sure that your project has Postgres database set up.
- Run rails server and visit http://localhost:3000/ in your browser!
## Built With

- Ruby
- Rails
- Postgresql

## Prerequisites

- A Command Line Interface.
- Having Ruby installed.
- Setup Rails
- Postgresql
- A code editor like Visual Studio Clone.
- Git installed.

To check if you have Git, Postgres and Ruby installed you can use the commands below:

```sh
$ git --version
$ ruby --version && irb
```
If you don't have Ruby, you can find a complete list of ways to install Ruby, including using third-party tools like rvm, see:

(https://www.ruby-lang.org/en/downloads/)
### 🛠 Installation & Set Up

If you installed git you can clone the code to your machine, or download a ZIP of all the files directly.
```

- Open the [Repository Link](https://github.com/NATASHA-ct/HELLO--RAILS.git) of this project in GitHub.

- Once the files are on your machine, open capstone-ruby folder in [Visual Studio Code](https://code.visualstudio.com/).

## Getting Started
-To get a local copy up and running follow these simple example steps.

### Install
Start by cloning the repository.

- https://github.com/NATASHA-ct/HELLO--RAILS.git

Navigate to the created folder.

- Initialize your project with Git.
- Make sure that your project has Postgres database set up.
- Run rails server and visi thttp://127.0.0.1:3000/ in your browser!

### Usage
--Once you have your repository cloned on your machine, feel free to modify it as needed.
- To add your own page

### run the following in your terminal:
- gem install rails
- gem install pg
- bundle install (use this whenever you want add a gem in your gem file)
- rails new . --database=postgresql
- rails db:create
- rails generate controller **foldername filename*8
- rails generate model
```

### Quick view of the project
Screenshot 2022-10-26 151428
Screenshot 2022-10-26 152653

## Authors
👤 **Natasha Tatenda Chirombe**

- GitHub: [@NATASHA-ct]((https://github.com/NATASHA-ct)
- Twitter: [@NatashaChirombe]
- LinkedIn: [Natasha Chirombe](linkedin.com/in/natasha-chirombe-1531aa17b)

## 🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the [issues page](../../issues/).

## Show your support

Give a ⭐️ if you like this project!

## Acknowledgments

-Hat tip to all documentations used
-Inspiration

## 📝 License

This project is [MIT](./MIT.md) licensed.