https://github.com/simongideon/starter-online-application
https://github.com/simongideon/starter-online-application
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/simongideon/starter-online-application
- Owner: SimonGideon
- Created: 2024-05-25T05:50:07.000Z (about 2 years ago)
- Default Branch: dev
- Last Pushed: 2024-06-04T11:27:11.000Z (about 2 years ago)
- Last Synced: 2025-02-07T20:49:28.762Z (over 1 year ago)
- Language: Ruby
- Size: 95.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
STARTER ONLINE APPLICATION
# 📗 Table of Contents
- [📖 About the Project](#about-project)
- [🛠Built With](#built-with)
- [Tech Stack](#tech-stack)
- [💻 Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Setup](#setup)
- [Install](#install)
- [Usage](#usage)
- [Run tests](#run-tests)
- [🙂 Best Part of My Code 🔥💯](#best-part)
# 📖 Starter Online Application
**Starter Online Application** is a simple online platform that allows users to register, login and query data via APIs.
Client
Server
Database
## 💻 Getting Started
To get a local copy up and running, follow these steps.
### Prerequisites
In order to run this project you need:
- Ruby 3.3.1
- Rails 7.1.3.2
- Node >= 14.21.3
### Setup
Clone this repository to your desired folder:
```sh
cd my-folder
git clone https://github.com/SimonGideon/Starter-Online-Application
```
### Install
Install this project with:
```sh
cd starterapp
gem install
```
### Usage
To run the project, execute the following command (RECOMENDED: Run separately):
```sh
rails db:create
rails db:migrate
rails s
```
### Run tests
To run tests, run the following command:
```sh
rspec
```
## 🙂 Best Part of my code 🔥
Having a solid understanding of the authentication and cryptography behind most of the `auth gems`. I decided to work my auth from scratch using `bcrypt gem` for secure hashing of the passwords. Create a session after a check wheither the user exist and delete the session on log out. The rest of the pages can only be accessed by the authorized user `current_user`.
Check here 👉 [Click Me](https://github.com/SimonGideon/Starter-Online-Application/blob/dev/app/models/user.rb#L3-L29) and also [Me](https://github.com/SimonGideon/Starter-Online-Application/blob/dev/app/controllers/sessions_controller.rb#L9-L19)