The ultimate lean digital tool to develop faster and better.
Run npm install
in web-client and backend folders.
Run docker-compose up
or npm start
in the root folder.
Run migrations in the backend folder: node_modules/.bin/sequelize db:migrate --env=local
.
You're all set! Go to http://localhost to access to Caspr.
To use Graphql Playground, visit this page.
Staging platform is accessible at https://caspr-staging.theo.do. Ask SSH access to be able to deploy.
To connect to the server, run ssh ubuntu@caspr-staging.theo.do
Run npm run deploy:staging
.
Production platform is accessible at https://caspr.theo.do. Ask SSH access to be able to deploy.
To connect to the server, run ssh ubuntu@caspr.theo.do
Run npm run deploy:prod
.
The ORM we use is sequelize. Follow following command to update the database.
Run node_modules/.bin/sequelize model:generate --name User --attributes firstName:string,lastName:string,email:string
with correct model name and model attributes. Then edit the generated files.
Run node_modules/.bin/sequelize db:migrate
.
To connect to the database, run the following command:
- dev environnement :
docker-compose exec postgresql psql -U caspr
- staging & prod :
psql -h localhost -U caspr caspr