- Go to the project root directory
- Create an
.env
file for the variables - Run
npm install
- Run
npm start
to start the project
- express
- dotenv
- bodyParser
- pg
- sequelize
- babel
- passport
- passport-google-oauth20
- passport-stub
- cors
- passport-local
- bcrypt
- redis
- joi
- mocha
- chai
- chai-http
- nyc
- prettier
- eslint
- husky
- sinon
- swagger-ui-express
- swagger-jsdoc
- pg
- pg-hstore
- morgan
- chai
- chai-http
- nyc
-
HoundCI is a code review tool that automatically reviews code changes for potential errors and issues.
It can be integrated into the continuous integration and delivery (CI/CD) process
to ensure that code changes are thoroughly reviewed before they are deployed to production -
In summary, HoundCI is a helpful tool for automating code review and ensuring the quality of code changes in a software development project.
- Nodemailer is a tool that simplifies the process of sending transactional emails in eCommerce websites. It supports various email services and offers useful features such as email templates, file attachments, and HTML emails.
Make sure PostgreSQL is installed on your machine. You can download and install it from the official website: https://www.postgresql.org/download/.
Create a .env file in the root directory of your project and set the NODE_ENV environment variable to development. You can also set any other environment variables you need in this file. Below is the .env configuration keys, you can add the correct values for your database connection.
PORT = ''
DEV_DATABASE_URL = ''
POSTGRES_DIALECT = ''
TEST_DATABASE_URL = ''
DATABASE_URL = ''
NODE_ENV = ''
PORT=''
GOOGLE_CLIENT_ID=''
GOOGLE_CLIENT_SECRET=''
EXPRESS_SESSION_SECRET=''
JWT_SECRET=''
SWAGGER_URL=''
DEV_DATABASE_URL=''
TEST_DATABASE_URL=''
DATABASE_URL=''
ENV=''
SSL=''
PRODUCTION_URL=''
REDIS_URL= ''
NODE_MAILER_USER=''
NODE_MAILER_PASS=''
RESET_PASSWORD_KEY=''
HOST_MAILER=''
To create the Users table in your PostgreSQL database, run the following command in your terminal:
npx sequelize-cli db:migrate
This will execute the migration files in the db/migrations folder and create the Users table in your PostgreSQL database.