Giter VIP home page Giter VIP logo

vnoun.net8's Introduction

VNOUN - ASP.NET Core

This project implements an API for an e-commerce online store based on the VNOUN source code available on Codecanyon. You can see the features of this source code on Codecanyon. https://codecanyon.net/item/vnoun-vue3-nodejs-fully-responsive-online-store-mevn/38810680#

The original API was developed using Express.js technology for the API and Vue.js technology for the client side. Instead, this project uses ASP.NET Core technology to implement the API. All original API routes have been rewritten with no functional changes.

Deployment

Steps to deploy this project:

Step 1 (Install Git and clone project):

Update the software list, install Git, and then download a copy of the Vnoun-dotnet8 project from GitHub:

  sudo apt update
  sudo apt-get install git
  git clone https://github.com/sina1864/Vnoun-dotnet8

Step 2 (Install .NET SDK):

Update the software list and install the .NET SDK version 8.0 with automatic acceptance of any prompts (like licenses):

  sudo apt-get update
  sudo apt-get install -y dotnet-sdk-8.0

Step 3 (Install Nginx):

Install Nginx web server:

  sudo apt install nginx

Step 4 (Configure Nginx):

Remove the default configuration file for Nginx, and then modify it:

  sudo rm /etc/nginx/sites-enabled/default
  nano /etc/nginx/sites-enabled/default
  • copy and paste this sample:
server {
        listen 80 default_server;
        listen [::]:80 default_server;

        location / {   
                proxy_pass http://localhost:5120;
        }
}

Step 5 (Restart Nginx):

Kill and restart Nginx processes:

  lsof -i :80
  kill -9 pid
  kill -9 pid
  nginx
  systemctl status nginx
  • If the status of the Nginx is not active, run the following commands and then run the commands of step 4 again:
  sudo rm /etc/nginx/sites-enabled/default
  sudo service nginx restart

Step 6 (Run project):

Go to the project directory and run it:

  ls
  cd Vnoun-dotnet8
  ls
  cd Vnoun.API
  nohup dotnet run & 1

Step 7 (Obtain SSL certificate):

Connect your domain to the server's IP by using an A record.

Install Certbot as a Snap package, create a symbolic link to make it globally accessible, and then use Certbot to obtain an SSL certificate for the Nginx server:

  sudo apt install snapd
  sudo snap install --classic certbot
  sudo ln -s /snap/bin/certbot /usr/bin/certbot
  sudo certbot --nginx
  • add your email address and domain and also accept the rules (Y).

Step 8 (View website):

Go to https://your_domain/swagger/index.html to view your website.

Redeploy after changes:

If you intend to redeploy after the source code changes, run the following commands:

  ls
  cd Vnoun-dotnet8
  git pull https://github.com/sina1864/Vnoun-dotnet8
  lsof -i :5120
  kill -9 pid
  ls
  cd Vnoun.API
  nohup dotnet run & 1

vnoun.net8's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.