https://github.com/paalamugan/optic-visions
This product useful for customer who wishes to have all the details for the optical related business.
https://github.com/paalamugan/optic-visions
angular nodejs postgresql sequelize
Last synced: about 1 month ago
JSON representation
This product useful for customer who wishes to have all the details for the optical related business.
- Host: GitHub
- URL: https://github.com/paalamugan/optic-visions
- Owner: paalamugan
- License: apache-2.0
- Created: 2021-03-27T01:12:19.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-26T08:47:42.000Z (almost 2 years ago)
- Last Synced: 2024-11-19T10:42:22.867Z (3 months ago)
- Topics: angular, nodejs, postgresql, sequelize
- Language: JavaScript
- Homepage: https://optic-visions.vercel.app
- Size: 6.16 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GET STARTED
**One Time Only in linux**
- Install postgresql
```shell
sudo apt install postgresql
```- Install redis
```shell
sudo apt install redis-server
```- Make sure postgres server is running or not, if not use below command
```
sudo service postgresql start
```- Make sure redis server is running or not, if not use below command
```
redis-server --requirepass test
```*Alternative*
- If you have docker machine, run below command
```
docker-compose up -d
```## Install Dependencies
- For server
```shell
npm install
```- For client
```shell
npm run client:install
```## Development
```shell
cp .env-example .env
```
- For server
```shell
npm run server
```- For client
```shell
npm run client
```- If simultaneously start a both server and client
```shell
npm run dev
```## Production
- Build a client code
```
npm run client:build
```- Start a production server
```
npm run prod
```### Deploy
**You must push all your code changes into `main` branch not in `deploy` branch.then merge `main` branch changes to `deploy` branch.**
- Push all your code in `main` branch
```shell
git checkout deploy
```- Merge your main branch changes to deploy branch
```shell
git merge main
```
- Push your merge code into `deploy` branch```shell
git push
```### Tips
- Create Heroku app
```shell
heroku create optic-visions
```- Link with a existing heroku app
```
heroku git:remote -a optic-visions
```- Push your code to heroku
```
git push heroku deploy
```- Add postgres database addons in Heroku.
```shell
heroku addons:create heroku-postgresql:hobby-dev
```- See heroku terminal logs
```shell
heroku logs --tail
```