Skip to content

Instantly share code, notes, and snippets.

@reneweteling
Created February 22, 2022 07:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reneweteling/9a2c6a90817268bcd9c5faf9592284db to your computer and use it in GitHub Desktop.
Save reneweteling/9a2c6a90817268bcd9c5faf9592284db to your computer and use it in GitHub Desktop.

Seeer project

The project consists of 2 repositories, one for the frontend (nodejs vuejs) one for the backend (php laravel). To install the correct versions of php, node etc. just run asdf install and if you dont have asdf installed, shame on you! https://github.com/asdf-vm/asdf and install the asdf plugins for php, nodejs (google is your friend)

Backend

Make sure you have mysql installed brew install mysql (mac) than create a database and make sure the credentials are compliant with the .env file. You can also ask sohail for a production database to have some data.

Clone the repo: https://github.com/sohailnl/seeer-backend

cd seeer-backend
cp .env.example .env # you can ask the current values to Sohail, they live in envoyer
asdf install
composer install
php artisan migrate # run database migration (create tables etc)
php artisan serve

Frontend

Clone the repo: https://github.com/sohailnl/seeer-frontend

cd seeer-frontend
asdf install
npm install
npm run start:local

Now you sould be able to visit http://localhost:8080 and boot the application. To switch the theme, check the config.js

Deployment

We have a app called envoyer https://envoyer.io/auth/login we deploy using this app. It has all the environment vars and all the steps to deploy. Usually its wise to first deploy the backend than the frontend. Just becaust you would like the api to be up to date before deploying the frontend who relies on this.

All the staging applications listen to the develop branch, and all production apps listen to the master branch.

Committing

When committing use the https://www.conventionalcommits.org/en/v1.0.0/ standards, these are handy when we deside to use semantec deployments or extract features from certain commits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment