https://github.com/noraworld/diary-system
A minimum, simple, and sophisticated diary system
https://github.com/noraworld/diary-system
diary
Last synced: 7 months ago
JSON representation
A minimum, simple, and sophisticated diary system
- Host: GitHub
- URL: https://github.com/noraworld/diary-system
- Owner: noraworld
- License: mit
- Created: 2016-07-06T17:14:09.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-02-15T06:20:35.000Z (8 months ago)
- Last Synced: 2025-02-15T06:27:48.480Z (8 months ago)
- Topics: diary
- Language: Ruby
- Homepage: https://diary.noraworld.com
- Size: 5.03 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Diary
Simple diary application. Unlike a blog, this application is suitable for writing everyday life, events, thoughts and other miscellaneous contents daily in a sense of diary.
## Installation
```
$ bundle config --local build.libv8 --with-system-v8
$ bundle install
```## Setup
You should create a new user to post your diary.```
# For development environment
$ bundle exec rails diary:create_user
```
Or
```
# For production environment
$ RAILS_ENV=production bundle exec rails diary:create_user
```
```
Create a new user
username: alice
password: (Not shown)Created a new user: alice
```You can now sign in with username and password that you set up in `/login` page.
## Environment Variables
The environment variables are under the control of `.env` file. Copy `.env.sample` and rename it as `.env`. Then replace the environment variables with your own environment.```bash
$ cp .env.sample .env
``````Ruby
SECRET_KEY_BASE='random string'
TIME_ZONE='your time zone'
```### Secret Key Base (required)
`SECRET_KEY_BASE` is a random string for the secret key base of production environment. The secret key base can be generated by running the following command.```
$ bundle exec rails secret
```Copy the string generated by the command above and paste it to `SECRET_KEY_BASE`. This environment is unnecessary for development environment.
### Time Zone (required)
`TIME_ZONE` is your country’s time zone. To list all time zones, you can use the following command.```
$ bundle exec rails time:zones
```## License
All codes of this repository are available under the MIT license. See the [LICENSE](https://github.com/noraworld/diary.noraworld.jp/blob/master/LICENSE) for more information.