An website for keeping track of the 'BAK' a person has
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
What things you need to install the software and how to install them:
- Node.js
- npm (Node Package Manager)
- SQLite (for local development)
A step-by-step series of examples that tell you how to get a development environment running.
-
Clone the repository
git clone [repository URL] cd [local repository]
-
Create a
.env
file in the root directoryCopy the following content into the
.env
file. Make sure to replaceyour_random_secret_here
with a strong, unique secret for theSESSION_SECRET
. SetLOCAL_DB
totrue
orfalse
depending on if you are using a local SQLite database or the MySQL database hosted on Azure.GOOGLE_CLIENT_ID= GOOGLE_CLIENT_SECRET= SESSION_SECRET=your_random_secret_here ADMIN_EMAILS= LOCAL_DB=true|false
-
Prepare the database connection for local development
Go to
models/index.js
:-
Uncomment the SQLite database connection for local development:
// Initialize the database connection const sequelize = new Sequelize('sqlite:./db.sqlite');
-
Comment out the Azure SQL Server database connection:
// Initialize the database connection for Azure SQL Server using environment variables // const sequelize = new Sequelize(...);
-
-
Modify the
app.js
for local developmentIn the root file
app.js
, comment out the following to disable secure cookies in a non-HTTPS environment:// secure: true, // domain: 'bak-counter.azurewebsites.net',
-
Install dependencies
Run the following command in your terminal:
npm i
-
Start the application
Once the installation is done, you can run the following command to start the application:
npm start
-
Access the application
Open your web browser and go to http://localhost:8080.
- Node.js - The runtime environment used
- Express - The web framework used
- SQLite/Azure SQL - The database used
- Ruben Talstra - Initial work - rubentalstra
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE file for details