Aofuji Analytics Save Abandoned

Minimal alternative to Google Analytics based on Vue.js and MongoDB.

Project README

Aofuji Analytics

Introduction

Recent works:

  • Migrating to Vue CLI v5 (Current: 5.0.0-beta.1)
  • Migrating to Vue 3 (Current: ~2.6.12)

Minimal alternative to Google Analytics based on Vue.js and MongoDB.

Preview Image

About the Project

This project does not use semantic versioning until v1 is officially released, so please check the changelog carefully before each upgrade to see if it is still working properly.

Getting Started

Go to documentation site for detailed instructions.

Installation

Get Source

git clone https://github.com/dsrkafuu/aofuji-analytics.git
cd aofuji-analytics

Checkout the latest release after cloned:

git checkout v0.1.4

You can get the latest release tag at release page.

Setup Environment Variables

Create a .env.production file and set the only required environment variable NODE_DATABASE_URL. If you're using a locally installed MongoDB server, your setup looks like this:

echo "NODE_DATABASE_URL=mongodb://username:password@localhost:27017/dbname" > .env.production

Check out the Environment Variables for more optional variables.

Install Deps and Build

npm ci
npm run build

Start Application

npm start

When the server starts up at port 3000, you can expose it directly to the public network (not recommended) or provide it to a reverse proxy.

Update Application

Fetch Latest Source

git fetch
git checkout v0.1.4 # latest tags will show in terminal when fetch

Update Deps and Build

npm ci
npm run build
npm start

Contribute

Local Development

First you need to fork this repo and clone it.

Then create a .env.development then set the development environment variables above. Check the Environment Variables section for more details.

After these, you can simply:

npm install
npm run dev

Local MongoDB server is also needed.

Code Style

This project uses husky and lint-staged to format source code, so the git commands may be slow due to the Prettier formatting workflow.

Options API Props Order

name => components
props => data => computed => watch
lifecycle functions
methods
render

SCSS Scopes

All basic components in @/components should not use scoped styles, styles of those needs to be named like a-component-ctx.

Alternatively, all view components in @/views should use scoped styles.

License

This project is released under MIT License, for more information read the LICENSE.

Copyright © 2020-present DSRKafuU (https://dsrkafuu.su)

Open Source Agenda is not affiliated with "Aofuji Analytics" Project. README Source: dsrkafuu/aofuji-analytics
Stars
97
Open Issues
1
Last Commit
2 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating