Comments (4)
The dist folder is generated by running the yarn build
command.
from intro-to-graphql.
Hello! What I did was:
- Change the "start" command in package.json to ->
node src/index.js
run with yarn. After that, the folder dist should be created. - Now change the same line to
node dist/index.js
To connect to db, make sure you follow these instructions: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/#install-mongodb-community-edition-on-macos if you're on Mac.
I don't know if is the correct way of doing it but it worked for me.
Regards!
from intro-to-graphql.
Hey @Vince2301 , You just need to run yarn build
and then yarn start
:)
from intro-to-graphql.
Edit nest-cli.json
{
"collection": "@nestjs/schematics",
"sourceRoot": "src",
"entryFile": "your/main/js/path"
}
from intro-to-graphql.
Related Issues (9)
- Lesson 2: "Product has base fields" test is flawed HOT 1
- cannot yarn dev HOT 1
- Can't run "yarn" HOT 1
- Lesson 1 Error: Type "Query" was defined more than once. HOT 7
- Add required versions of yarn and node on the README HOT 1
- MongoError: topology was destroyed HOT 3
- issues with install on windows HOT 1
- Cannot run lesson-2 tests HOT 2
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 intro-to-graphql.