This is a T3 Stack project bootstrapped with create-t3-app.
pnpm install- Update
.envfile with theSLACK_CLIENT_IDandSLACK_CLIENT_SECRETvalues form the Slack App Credentials page
Note You should be a collaborator of the application to get the Slack id and secret. Ask @yoannfleurydev for access if you haven't one yet.
Note Following commands are required only one time or when the certificate expires.
- Install mkcert
brew install mkcert - If you use Firefox
brew install nss mkcert -installpnpm ssl:generate(will generate certificate that are .gitignored)pnpm dev- Open https://localhost:3001 and enjoy HTTPS for localhost
To connect to the local database, you should change the following environment variables:
DOCKER_DATABASE_PORT: postgres docker port.DOCKER_DATABASE_NAME: name of the postgres db.DOCKER_DATABASE_USERNAME: username to connect to the postgres db.DOCKER_DATABASE_PASSWORD: password to connect to the postgres db.DOCKER_DATABASE_IP: local IP address of the host.
If you're creating your own database (following instructions in the next section), you can choose all variables as they will be used both to create the docker container and to connect to it.
If you're connecting to someone else database, write down the same variables as the host.
If you want to use your own local database, you should first write down the environment variables (cf. Connection section)
Prerequisites:
- Docker (feel free to check out the first steps with docker if it's your first time or if you have any probelms)
Then, launch the postgres image with:
# if it's your first time you'll have to initialize it with
pnpm dk:init
# else you can just use
pnpm dk:start
(you can check quickly if the container is running with: docker ps)
To connect with a second account in dev mode, you can update your GOOGLE_AUTHORIZED_DOMAIN environment variable by simply adding to the string the domain of your personal email.
For exemple, you could have '@bearstudio.fr,@gmail.com'.
You also have to update your GOOGLE_CLIENT_ID and your GOOGLE_CLIENT_SECRET, replace them with the value of the Google Cloud Cowat-dev project credentials.
We try to keep this project as simple as possible, so you can start with just the scaffolding we set up for you, and add additional things later when they become necessary.
If you are not familiar with the different technologies used in this project, please refer to the respective docs. If you still are in the wind, please join our Discord and ask for help.
To learn more about the T3 Stack, take a look at the following resources:
- Documentation
- Learn the T3 Stack — Check out these awesome tutorials
You can check out the create-t3-app GitHub repository — your feedback and contributions are welcome!
- Switch to the develop branch
- Check for migrations (from Neon)
- Create Snapshot to back up the schema in case of problems
- Install dependency (
pnpm install) - Put the production URL in your .env
- Migrate database to production (
db:migrate:deploy) - Go to the main branch
- Do a rebase on develop
- Copy the link into OnePassword (“🚨 DEPLOY COWAT TO PRODUCTION 🚨”) and open it in your browser
- Otherwise, go to Vercel, then to settings > git > deploy hooks to get the link
- Check the build on the link and the deployment (make sure everything is going smoothly).
- Verify that everything is functioning on production.