https://github.com/zeuxisoo/web-ubxui
Small web application to demo how to using the phoenix framework
https://github.com/zeuxisoo/web-ubxui
elixir phoenix-framework web
Last synced: about 1 month ago
JSON representation
Small web application to demo how to using the phoenix framework
- Host: GitHub
- URL: https://github.com/zeuxisoo/web-ubxui
- Owner: zeuxisoo
- Created: 2016-11-25T05:47:49.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-25T05:54:41.000Z (over 9 years ago)
- Last Synced: 2025-09-05T01:45:51.909Z (10 months ago)
- Topics: elixir, phoenix-framework, web
- Language: JavaScript
- Homepage:
- Size: 379 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ubxui
Small web application to demo how to using the phoenix framework
## Development
Install dependency
mix deps.get
Start Database
make postgres-stop
make postgres-start
Create database and schema
make install
make refresh-db
Create seeds
make seeds
Develop server
make server
Develop assets
make dev-assets
Migrate
make migrate
## PostgreSQL
This documentation is tested on version `9.5.4_1`
Run the following command to install (default user is current user)
$ brew install postgresql
$ pg_ctl -D /usr/local/var/postgres start
$ psql -d postgres
If you want to create new user and set password
$ /usr/local/Cellar/postgresql//bin/createuser -s postgres
$ psql -Upostgres postgres
postgres=# \password postgres
Enter new password:
Enter it again:
postgres=# \q
$ pg_ctl -D /usr/local/var/postgres restart
If you want the user password must enter
$ vim /usr/local/var/postgres/pg_hba.conf
local all all md5
host all all 127.0.0.1/32 md5
host all all ::1/128 md5
$ pg_ctl -D /usr/local/var/postgres restart