Giter VIP home page Giter VIP logo

impuls_project's Introduction

First of all you need to install Node.js on your local machine!

Run the development server

npm i
npm run dev

Run the production server

cd /home/frontend
npm i
npm run build
npm run start

Pages files

Static site pages - about, contact and policy are located in these directory:

PROJECT_DIRECTORY/src/components/screens/staticPages

Styles for the static pages

First of all, in Next.js you need to use css modules to locate styles at certain pages. CSS modules for this pages you can see in these directory:

PROJECT_DIRECTORY/staticPages/styles

Files has the same names as the pages. To use it write your css classes through using styles variable. For example if you have .Content CSS class you need to write className={styles.Content} in tag that you want to style.

Translation

Example of language translation is in those page files - about.tsx, contact.tsx, policy.tsx Translation files is located in subdirectories for each language in these directory:

PROJECT_DIRECTORY/public/locales

"en" for english translation for example. You need to edit only .json files with the same name as the page files has. Using translation in details you can see in pages files. Read comments there.

GitHub

Clone repo

git clone {full URL of you repository without branch}

If you already have repository on your local machine, then pull it from git repo if it was some changes in git repo before

git pull

To push local repo to github write those commands in terminal from project root folder

git add .
git commit -m "{here is your commit}"
git branch -m main
git remote remove origin
git remote add origin {put here URL of you git repo}
git push -u origin main

Docker

Refresh (stop and remove current container)

docker stop frontend
docker rm frontend

Build another container (with the same image)

docker-compose build

Then run new container

docker-compose up

impuls_project's People

Contributors

bergemon 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.