Check product documentation for more details.
- Fork this repo
- Click on
Codeand copy the url - Run the following commands:
# Replace FORK_URL with what you just copied
git clone FORK_URL
cd backendyarn installor
npm installyarn is the recomended package manager. Therefore, next instructions will be demonstrated via yarn. You can install it with this guide.
echo "JWT_SECRET='SECRET_KEY'" >> .envFor the rest of the environment variables, check this file.
yarn container:startNow, you should see the server ready message:
web | 🔷 NODE_ENV: development
web | 🚀 Server ready at http://localhost:5000
web | Executing (default): SELECT 1+1 AS result
web | 📚 Database connection has been established successfullyIn a separate terminal, run:
yarn container:setupYou should see:
>>> DB SETUP COMPLETE!All set! Go to http://localhost:5000/ -- you should see:
{
status: 1
}yarn sequelize-cli model:generate --name Sample --attributes name:string,surname:string,email:string
yarn sequelize-cli seed:generate --name SampleYou can use the link for the data types of sequelize.
- All set! Go to heroku dashboard -- you should see list of your apps.
- Open the control panel of the app that corresponding to qrder_web project.
- Enter to the
Settingsmenu. - Setup
Config Varsof the project properly. For details - Enter to the
Deploymenu. - Check whether automatic deploy is enabled. -- if not:
-
- Choose a branch that you want to deploy to heroku and press
Enable Automatic Deploysbutton. Or,
- Choose a branch that you want to deploy to heroku and press
-
- Use the
Manual deployoption.
- Use the