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

https://github.com/simongideon/starter-online-application


https://github.com/simongideon/starter-online-application

Last synced: about 1 year ago
JSON representation

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.

## 🛠 Built With

### Tech Stack

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:


  1. Ruby 3.3.1

  2. Rails 7.1.3.2

  3. 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)