| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
If you run the project locally, the followings are required.
Setup procedure of development environment.
Run cp .env.example .env and open .env file to edit environment variables.
Build docker containers
docker-compose buildSetup database Development
docker-compose run web bundle exec rake db:create db:migrate db:seedAfter running seed, there should be a doorkeeper application record in your database. In your rails console, run the following command:
Doorkeeper::Application.lastCopy uid and secret and put them in NextJS project's .env file under corresponding env variables: NEXT_APP_CLIENT_ID and NEXT_APP_CLIENT_SECRET
Setup database Test
docker-compose run web bundle exec rake db:create db:migrate db:seed RAILS_ENV=testRswag
docker-compose run web bundle exec rake rswag:specs:swaggerizeStart the app
docker-compose upIf you want to use Rails without Docker, then follow below steps
Install dependencies
bundle installStart postgres and setup database
bin/rake db:create db:migrate db:seedStart the app
## API server
bin/rails sStart console
bin/rails cIf you install and run rails server on your local machine, email will be open immediately on your browser when an email is sent by rails. If you're using docker, please go to mailbox at http://localhost:1080
Once you created the staging and production environments in Jitera's DevOps menu, you can deploy to staging by pushing a new commit to develop branch, and to production by pushing a new commit to master branch.
This project was generated by jitera automation, run by Jitera.
| Back | FazBrowse Home | New Git URL |