Comments (5)
Hi,
As I can see in your error log, "our global Angular CLI version (7.1.3) is greater than your local", it means you have the up-to-date Angular CLI. When I built the project last year, the latest was Angular 5.2.0 with Firebase 4.12.1.
I think you have two options to run it.
#1 update the package.json file to use the Angular CLI 7.1.3 (the one you have), but note that you might need to change or migrate the code because some Angular CLI 5.2.0 is not compatible with 7.1.3
#2 install Angular CLI 5.2.0 rather than Angular CLI 7.1.3 (I consider this a bad or wrong solution)
I am not sure if there is a way to by-pass Angular CLI 5.2.0 procedures with Angular CLI 7.1.3. I have not tried that but I advise you to give it a try so search on google how to run Angular CLI 5.2.0 project on Angular 7.1.3 framework.
One last thing to mention, to run the project locally, you need also to create your own Firebase database, and Moltin API collection. I do not includes these keys in the project. They are usually in and environment.ts and environment.prod.ts files in the angular project but I .gitignore them
If you have a problem with creating Moltin collection or firebase database, then contact me or create a new issue, I will guide you about the schema I used in Moltin and firebase.
Hope this helps
from shopi.
Actually I excluded config.ts, environment.ts and environment.prod.ts because they contain sensitive information. You need to create your store at Moltin. In addition, you will need to create your firebase database (or a local database will work though).
for config.ts, it looks like:
import { gateway as MoltinGateway } from '@moltin/sdk';
export class Config {
static readonly clientID: string = "<your Moltin ClientID>";
static readonly clientSecret: string = "<your Moltin ClientSecret>";
static readonly baseImagesUrl = "<your baseImagesUrl in Molin>";
static readonly Moltin = MoltinGateway({
client_id: Config.clientID,
client_secret: Config.clientSecret
});
constructor() {
}
}
while both environment.ts and environment.prod.ts:
export const environment = {
production: false,
firebase: {
apiKey: "<your firebase apiKey>",
authDomain: "<your firebase authDomain>",
databaseURL: "<your firebase databaseURL>",
projectId: "<your firebase projectId>",
storageBucket: "<your firebase storageBucket>",
messagingSenderId: "<your firebase messagingSenderId>"
}
};
Hope this helps 👍
from shopi.
Please add the config.ts file and the files in the envirement folder with empty strings just to know what tokens and keys I should add.
And thank you for this amazing project.
from shopi.
please help in creating Moltin collection or firebase database
from shopi.
After update the package.json file to use the Angular CLI 7.1.3 (the one you have), but note that you might need to change or migrate the code because some Angular CLI 5.2.0 is not compatible with 7.1.3
Error: This command is not available when running the Angular CLI outside a workspace.
from shopi.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shopi.