by Joao Paulo Furtado
First you should configure your serverConfig.ts file inside src/constants folder. It should follow the following format:
const appName = 'App Boilerplate';
const supportEmail = 'email@gmail.com';
export const serverConfig = {
app: {
name: appName,
devUrl: 'http://localhost:3000/',
productionUrl: 'https://appboilerplate.io'
},
email: {
supportEmail,
sendGridAPIKey:
'API_KEY',
templatesFolder: './src/emails/templates',
globalTemplateVars: {
'Product Name': appName,
'Sender Name': 'Joao',
'Company Name, LLC': 'App Boilerplate Inc',
'Company Address': '1234, Street Rd. Suite 1234'
}
}
maintenanceMode: false,
language: 'eng',
jwtSecret: 'yourJWTTOKEN'
};
Run:
docker-compose up
- SSH into running container:
- Check the running docker containers:
docker ps
then select one (name). For example: docker-node-mongo. Then run:
docker exec -it docker-node-mongo /bin/bash
- Access http://localhost:1234 to manage your mongodb database