Github pages: link
Electric car dealer site (concept)
You have not to run the project by yourself, you can visit it at github pages.
But if you want to make any changes or you prefer to run site directly on your computer, here are the instructions.
At first, you need to clone the code (if you haven't done it yet) and install required dependences
git clone https://github.com/coder8080/elecar
cd elecar
npm iTo start the project in development mode, run:
npm startThis will start a development server as well as open site in the browser. If you aren't going to make any changes to the code, then I advice you to consider production mode instead of development.
Production build has less weight and work faster than development, but it needs some time to compile.
To create a production build, run:
npm run buildWait for the process to finish. After that, you will have your compiled files in the build folder in the root of the project. You can serve them with every tool for serving static files like serve, nginx, etc.
If you want to use serve, use following commands:
npm i serve -g
serve -s build -p 3000Note that in this case, you will need to open http://localhost:3000/elecar
by yourself.
Important! Do not forget /elecar at the end of the url!
http://localhost:3000/elecar, not http://localhost:3000!
If you have found any issues, you can write me about them here.